Class FileDataProvenance


  • public class FileDataProvenance
    extends FileXML
    • Field Detail

      • XML_ENCODING

        private static final java.lang.String XML_ENCODING
        The charset the XML file is written in.
        See Also:
        Constant Field Values
      • XML_HEADER

        private static final java.lang.String XML_HEADER
        The XML version description header.
        See Also:
        Constant Field Values
      • DATA_PROVENANCE

        private static final java.lang.String DATA_PROVENANCE
        The MIPAV XML header comment.
        See Also:
        Constant Field Values
      • file

        private java.io.File file
        File reference.
      • pHolder

        private ProvenanceHolder pHolder
        The provenance holder to write from and read into
    • Constructor Detail

      • FileDataProvenance

        public FileDataProvenance​(java.lang.String fn,
                                  java.lang.String fDir,
                                  ProvenanceHolder ph)
        VOI reader/writer constructor.
        Parameters:
        fileName - file name
        fileDir - file directory
        image - image model: needed during the read process to ensure the VOI "fits" in the image space.
    • Method Detail

      • writeXML

        public void writeXML()
                      throws java.io.IOException
        Writes the data provenance into xml formatted file
        Throws:
        java.io.IOException