Class UUIDBox
java.lang.Object
com.sun.media.imageioimpl.plugins.jpeg2000.Box
com.sun.media.imageioimpl.plugins.jpeg2000.UUIDBox
This class is defined to represent a UUID Box of JPEG JP2
file format. This type of box has a length, a type of "uuid". Its
content is a 16-byte UUID followed with a various-length data.
-
Field Summary
Fields inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
data, extraLength, length, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompose()Composes the content byte array from the data elements.byte[]getData()Returns the UUID data of this box.static String[]This method will be called by the getNativeNodeForSimpleBox of the class Box to get the element names.Creates anIIOMetadataNodefrom this UUID box.byte[]getUUID()Returns the UUID of this box.protected voidparse(byte[] data) Parses the data elements from the provided 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 Details
-
UUIDBox
public UUIDBox(byte[] data) Constructs aUUIDBoxfrom its content data array. -
UUIDBox
Constructs aUUIDBoxbased 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. -
parse
protected void parse(byte[] data) Parses the data elements from the provided data array. -
getUUID
public byte[] getUUID()Returns the UUID of this box. -
getData
public byte[] getData()Returns the UUID data of this box. -
getNativeNode
Creates anIIOMetadataNodefrom this UUID 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.
-