Package ome.specification
Class XMLWriter
java.lang.Object
ome.specification.XMLWriter
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifies theBigEndianattribute.static final StringIdentifies theBinDatatag.static final StringIdentifies theCompressionattribute.static final StringIdentifies theDimensionOrderattribute.static final StringIdentifies theIDattribute.static final StringIdentifies theImagetag.static final StringIdentifies theLengthattribute.static final StringIdentifies theNameattribute.static final StringIdentifies theOMEtag.static final StringIdentifies thePixelstag.static final StringIdentifies thePixelTypeattribute.static final StringIdentifies theSizeCattribute.static final StringIdentifies theSizeTattribute.static final StringIdentifies theSizeXattribute.static final StringIdentifies theSizeYattribute.static final StringIdentifies theSizeZattribute. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ID_ATTRIBUTE
Identifies theIDattribute.- See Also:
-
NAME_ATTRIBUTE
Identifies theNameattribute.- See Also:
-
DIMENSION_ORDER_ATTRIBUTE
Identifies theDimensionOrderattribute.- See Also:
-
PIXELS_TYPE_ATTRIBUTE
Identifies thePixelTypeattribute.- See Also:
-
SIZE_C_ATTRIBUTE
Identifies theSizeCattribute.- See Also:
-
SIZE_T_ATTRIBUTE
Identifies theSizeTattribute.- See Also:
-
SIZE_Z_ATTRIBUTE
Identifies theSizeZattribute.- See Also:
-
SIZE_X_ATTRIBUTE
Identifies theSizeXattribute.- See Also:
-
SIZE_Y_ATTRIBUTE
Identifies theSizeYattribute.- See Also:
-
COMPRESSION_ATTRIBUTE
Identifies theCompressionattribute.- See Also:
-
BIG_ENDIAN_ATTRIBUTE
Identifies theBigEndianattribute.- See Also:
-
LENGTH_ATTRIBUTE
Identifies theLengthattribute.- See Also:
-
OME_TAG
Identifies theOMEtag.- See Also:
-
IMAGE_TAG
Identifies theImagetag.- See Also:
-
PIXELS_TAG
Identifies thePixelstag.- See Also:
-
BIN_DATA_TAG
Identifies theBinDatatag.- See Also:
-
-
Constructor Details
-
XMLWriter
public XMLWriter()Creates a new instance.
-
-
Method Details
-
writeFile
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
Writes the data to the file.- Parameters:
file- The file to handle.ome- The element to write to the file.binaryData- Passtrueto add the binary data,falseotherwise.- Throws:
Exception- Thrown if an error occurred while writing the XML file.
-