Class DataEntryURLBox
java.lang.Object
com.sun.media.imageioimpl.plugins.jpeg2000.Box
com.sun.media.imageioimpl.plugins.jpeg2000.DataEntryURLBox
This class is defined to represent a Data Entry URL Box of JPEG JP2
file format. A Data Entry URL Box has a length, and a fixed type
of "url ". Its content are a one-byte version, a three-byte flags and
a URL pertains to the UUID List box within its UUID Info superbox.
-
Field Summary
Fields inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
data, extraLength, length, type -
Constructor Summary
ConstructorsConstructorDescriptionDataEntryURLBox(byte[] data) Constructs aDataEntryURLBoxfrom its content data.DataEntryURLBox(byte version, byte[] flags, String url) Constructs aDataEntryURLBoxfrom its data elements.DataEntryURLBox(Node node) Constructs aDataEntryURLBoxfrom a Node. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompose()Composes the content byte array from the data elements.static String[]This method will be called by the getNativeNodeForSimpleBox of the class Box to get the element names.byte[]getFlags()Returns theFlagsdata element.Creates anIIOMetadataNodefrom this data entry URL box.getURL()Returns theURLdata element.byteReturns theVersiondata element.protected voidparse(byte[] data) Parses the content of this box from its content byte 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
-
DataEntryURLBox
public DataEntryURLBox(byte[] data) Constructs aDataEntryURLBoxfrom its content data. -
DataEntryURLBox
Constructs aDataEntryURLBoxfrom its data elements. -
DataEntryURLBox
Constructs aDataEntryURLBoxfrom a 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 content of this box from its content byte array. -
getNativeNode
Creates anIIOMetadataNodefrom this data entry URL box. The format of this node is defined in the XML dtd and xsd for the JP2 image file.- Overrides:
getNativeNodein classBox
-
getVersion
public byte getVersion()Returns theVersiondata element. -
getFlags
public byte[] getFlags()Returns theFlagsdata element. -
getURL
Returns theURLdata element. -
compose
protected void compose()Description copied from class:BoxComposes the content byte array from the data elements.
-