Class SignatureBox
java.lang.Object
com.sun.media.imageioimpl.plugins.jpeg2000.Box
com.sun.media.imageioimpl.plugins.jpeg2000.SignatureBox
This class is defined to represent a Signature Box of JPEG JP2
file format. This type of box has a fixed length of 12, a type of "jP "
and a four byte content of 0x0D0A870A, which is used to detects of the
common file transmission errors which substitutes with or
vice versa.
-
Field Summary
Fields inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
data, extraLength, length, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aSignatureBox.SignatureBox(byte[] data) Constructs aSignatureBoxbased on the provided byte array.SignatureBox(Node node) Constructs aSignatureBoxbased on the providedorg.w3c.dom.Node. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompose()Composes the content byte array from the data elements.Creates anIIOMetadataNodefrom this signature box.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, parse, parseByteArray, parseIntArray, read, setContent, setDefaultAttributes, setExtraLength, setLength, write
-
Constructor Details
-
SignatureBox
public SignatureBox()Constructs aSignatureBox. -
SignatureBox
Constructs aSignatureBoxbased on the providedorg.w3c.dom.Node.- Throws:
IIOInvalidTreeException
-
SignatureBox
Constructs aSignatureBoxbased on the provided byte array.- Throws:
IIOInvalidTreeException
-
-
Method Details
-
getNativeNode
Creates anIIOMetadataNodefrom this signature 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.
-