Class XMLWriter

    • Constructor Detail

      • XMLWriter

        public XMLWriter()
        Creates a new instance.
    • Method Detail

      • writeFile

        public void writeFile​(File file,
                              OME ome)
                       throws Exception
        Writes the data to the file. Binary data will be added.
        Parameters:
        file - The file to handle.
        ome - The element to write to the file.
        Throws:
        Exception - Thrown if an error occurred while writing the XML file.
      • writeFile

        public void writeFile​(File file,
                              OME ome,
                              boolean binaryData)
                       throws Exception
        Writes the data to the file.
        Parameters:
        file - The file to handle.
        ome - The element to write to the file.
        binaryData - Pass true to add the binary data, false otherwise.
        Throws:
        Exception - Thrown if an error occurred while writing the XML file.