Class UUIDListBox
- java.lang.Object
-
- com.sun.media.imageioimpl.plugins.jpeg2000.Box
-
- com.sun.media.imageioimpl.plugins.jpeg2000.UUIDListBox
-
public class UUIDListBox extends Box
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
Constructors Constructor Description UUIDListBox(byte[] data)
Constructs aUUIDListBox
from the provided content data array.UUIDListBox(short num, byte[][] uuids)
Constructs aUUIDListBox
from the provided uuid number and uuids.UUIDListBox(Node node)
Constructs aUUIDListBox
based on the providedorg.w3c.dom.Node
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
compose()
Composes the content byte array from the data elements.IIOMetadataNode
getNativeNode()
Creates anIIOMetadataNode
from this UUID list box.protected void
parse(byte[] data)
Parses the data elements from the provided content data array.-
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 Detail
-
UUIDListBox
public UUIDListBox(short num, byte[][] uuids)
Constructs aUUIDListBox
from the provided uuid number and uuids. The provided uuids should have a size of 16; otherwise,Exception
may thrown in later the process. The provided number should consistent with the size of the uuid array.
-
UUIDListBox
public UUIDListBox(byte[] data)
Constructs aUUIDListBox
from the provided content data array.
-
UUIDListBox
public UUIDListBox(Node node) throws IIOInvalidTreeException
Constructs aUUIDListBox
based on the providedorg.w3c.dom.Node
.- Throws:
IIOInvalidTreeException
-
-
Method Detail
-
parse
protected void parse(byte[] data)
Parses the data elements from the provided content data array.
-
getNativeNode
public IIOMetadataNode getNativeNode()
Creates anIIOMetadataNode
from this UUID list box. The format of this node is defined in the XML dtd and xsd for the JP2 image file.- Overrides:
getNativeNode
in classBox
-
-