Class XMLWriter

java.lang.Object
ome.specification.XMLWriter

public class XMLWriter extends Object
Methods to write the XML tags to the files.
Since:
3.0-Beta4
Version:
3.0 (Internal version: $Revision: $Date: $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk, Donald MacDonald      donald@lifesci.dundee.ac.uk
  • Field Details

  • Constructor Details

    • XMLWriter

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

    • 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.