Class UUIDListBox
java.lang.Object
com.sun.media.imageioimpl.plugins.jpeg2000.Box
com.sun.media.imageioimpl.plugins.jpeg2000.UUIDListBox
This class is defined to represent a UUID list Box of JPEG JP2
file format. This type of box has a length, a type of "ulst". Its
contents include the number of UUID entry and a list of 16-byte UUIDs.
-
Field Summary
Fields inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
data, extraLength, length, type -
Constructor Summary
ConstructorsConstructorDescriptionUUIDListBox(byte[] data) Constructs aUUIDListBoxfrom the provided content data array.UUIDListBox(short num, byte[][] uuids) Constructs aUUIDListBoxfrom the provided uuid number and uuids.UUIDListBox(Node node) Constructs aUUIDListBoxbased on the providedorg.w3c.dom.Node. -
Method Summary
Methods inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
copyInt, createBox, getAttribute, getBoxClass, getByteArrayElementValue, getByteElementValue, getContent, getExtraLength, getIntArrayElementValue, getIntElementValue, getLength, getName, getNativeNodeForSimpleBox, getShortElementValue, getStringElementValue, getType, getTypeByName, getTypeInt, getTypeString, parseByteArray, parseIntArray, read, setContent, setDefaultAttributes, setExtraLength, setLength, write
-
Constructor Details
-
UUIDListBox
public UUIDListBox(short num, byte[][] uuids) Constructs aUUIDListBoxfrom the provided uuid number and uuids. The provided uuids should have a size of 16; otherwise,Exceptionmay thrown in later the process. The provided number should consistent with the size of the uuid array. -
UUIDListBox
public UUIDListBox(byte[] data) Constructs aUUIDListBoxfrom the provided content data array. -
UUIDListBox
Constructs aUUIDListBoxbased on the providedorg.w3c.dom.Node.- Throws:
IIOInvalidTreeException
-
-
Method Details
-
parse
protected void parse(byte[] data) Parses the data elements from the provided content data array. -
getNativeNode
Creates anIIOMetadataNodefrom this UUID list box. The format of this node is defined in the XML dtd and xsd for the JP2 image file.- Overrides:
getNativeNodein classBox
-
compose
protected void compose()Description copied from class:BoxComposes the content byte array from the data elements.
-