Class DataEntryURLBox
- java.lang.Object
-
- com.sun.media.imageioimpl.plugins.jpeg2000.Box
-
- com.sun.media.imageioimpl.plugins.jpeg2000.DataEntryURLBox
-
public class DataEntryURLBox extends Box
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
Constructors Constructor Description DataEntryURLBox(byte[] data)
Constructs aDataEntryURLBox
from its content data.DataEntryURLBox(byte version, byte[] flags, String url)
Constructs aDataEntryURLBox
from its data elements.DataEntryURLBox(Node node)
Constructs aDataEntryURLBox
from a Node.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
compose()
Composes the content byte array from the data elements.static String[]
getElementNames()
This method will be called by the getNativeNodeForSimpleBox of the class Box to get the element names.byte[]
getFlags()
Returns theFlags
data element.IIOMetadataNode
getNativeNode()
Creates anIIOMetadataNode
from this data entry URL box.String
getURL()
Returns theURL
data element.byte
getVersion()
Returns theVersion
data element.protected void
parse(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 Detail
-
DataEntryURLBox
public DataEntryURLBox(byte[] data)
Constructs aDataEntryURLBox
from its content data.
-
DataEntryURLBox
public DataEntryURLBox(byte version, byte[] flags, String url)
Constructs aDataEntryURLBox
from its data elements.
-
DataEntryURLBox
public DataEntryURLBox(Node node) throws IIOInvalidTreeException
Constructs aDataEntryURLBox
from a Node.- Throws:
IIOInvalidTreeException
-
-
Method Detail
-
getElementNames
public static String[] 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
public IIOMetadataNode getNativeNode()
Creates anIIOMetadataNode
from this data entry URL box. The format of this node is defined in the XML dtd and xsd for the JP2 image file.- Overrides:
getNativeNode
in classBox
-
getVersion
public byte getVersion()
Returns theVersion
data element.
-
getFlags
public byte[] getFlags()
Returns theFlags
data element.
-
getURL
public String getURL()
Returns theURL
data element.
-
-