Class UUIDListBox
- java.lang.Object
-
- com.github.jaiimageio.jpeg2000.impl.Box
-
- com.github.jaiimageio.jpeg2000.impl.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.github.jaiimageio.jpeg2000.impl.Box
data, extraLength, length, type
-
-
Constructor Summary
Constructors Constructor Description UUIDListBox(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcompose()Composes the content byte array from the data elements.IIOMetadataNodegetNativeNode()Creates anIIOMetadataNodefrom this UUID list box.protected voidparse(byte[] data)Parses the data elements from the provided content data array.-
Methods inherited from class com.github.jaiimageio.jpeg2000.impl.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 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
public UUIDListBox(Node node) throws IIOInvalidTreeException
Constructs aUUIDListBoxbased 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 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
-
-