Class XMLBox
java.lang.Object
com.sun.media.imageioimpl.plugins.jpeg2000.Box
com.sun.media.imageioimpl.plugins.jpeg2000.XMLBox
This class is defined to represent a XML box of JPEG JP2
file format. This type of box has a length, a type of "xml ". Its
content is a text string of a XML instance.
-
Field Summary
Fields inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
data, extraLength, length, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]This method will be called by the getNativeNodeForSimpleBox of the class Box to get the element names.Creates anIIOMetadataNodefrom this XML box.Methods inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
compose, copyInt, createBox, getAttribute, getBoxClass, getByteArrayElementValue, getByteElementValue, getContent, getExtraLength, getIntArrayElementValue, getIntElementValue, getLength, getName, getNativeNodeForSimpleBox, getShortElementValue, getStringElementValue, getType, getTypeByName, getTypeInt, getTypeString, parse, parseByteArray, parseIntArray, read, setContent, setDefaultAttributes, setExtraLength, setLength, write
-
Constructor Details
-
XMLBox
public XMLBox(byte[] data) Create a Box from its content. -
XMLBox
Constructs aUUIDListBoxbased on the providedorg.w3c.dom.Node.- Throws:
IIOInvalidTreeException
-
-
Method Details
-
getElementNames
This method will be called by the getNativeNodeForSimpleBox of the class Box to get the element names. -
getNativeNode
Creates anIIOMetadataNodefrom this XML box. The format of this node is defined in the XML dtd and xsd for the JP2 image file.- Overrides:
getNativeNodein classBox
-