Class ComponentMappingBox
java.lang.Object
com.sun.media.imageioimpl.plugins.jpeg2000.Box
com.sun.media.imageioimpl.plugins.jpeg2000.ComponentMappingBox
This class is defined to represent a Color Specification Box of JPEG JP2
file format. A Channel Definition Box has a length, and a fixed type
of "cmap". This box exists if and only is a PaletteBox exists. Its
content defines the type LUT output components and their mapping to the
color component.
-
Field Summary
Fields inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
data, extraLength, length -
Constructor Summary
ConstructorsConstructorDescriptionComponentMappingBox(byte[] data) Constructs aComponentMappingBoxfrom the provided content byte array.ComponentMappingBox(short[] comp, byte[] t, byte[] m) Constructs aComponentMappingBoxfrom the provided component mapping.ComponentMappingBox(Node node) Constructs aComponentMappingBoxbased on the providedorg.w3c.dom.Node. -
Method Summary
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
-
ComponentMappingBox
public ComponentMappingBox(byte[] data) Constructs aComponentMappingBoxfrom the provided content byte array. -
ComponentMappingBox
public ComponentMappingBox(short[] comp, byte[] t, byte[] m) Constructs aComponentMappingBoxfrom the provided component mapping. -
ComponentMappingBox
Constructs aComponentMappingBoxbased on the providedorg.w3c.dom.Node.- Throws:
IIOInvalidTreeException
-
-
Method Details
-
parse
protected void parse(byte[] data) Parse the component mapping from the provided content data array. -
getNativeNode
Creates anIIOMetadataNodefrom this component mapping box. The format of this node is defined in the XML dtd and xsd for the JP2 image file.- Overrides:
getNativeNodein classBox
-
getComponent
public short[] getComponent() -
getComponentType
public byte[] getComponentType() -
getComponentAssociation
public byte[] getComponentAssociation() -
compose
protected void compose()Description copied from class:BoxComposes the content byte array from the data elements.
-