public class ComponentMappingBox extends Box
Modifier and Type | Field and Description |
---|---|
private short[] |
components
The data elements.
|
private byte[] |
map |
private byte[] |
type |
data, extraLength, length
Constructor and Description |
---|
ComponentMappingBox(byte[] data)
Constructs a
ComponentMappingBox from the provided
content byte array. |
ComponentMappingBox(Node node)
Constructs a
ComponentMappingBox based on the provided
org.w3c.dom.Node . |
ComponentMappingBox(short[] comp,
byte[] t,
byte[] m)
Constructs a
ComponentMappingBox from the provided
component mapping. |
Modifier and Type | Method and Description |
---|---|
protected void |
compose()
Composes the content byte array from the data elements.
|
short[] |
getComponent() |
byte[] |
getComponentAssociation() |
byte[] |
getComponentType() |
IIOMetadataNode |
getNativeNode()
Creates an
IIOMetadataNode from this component mapping
box. |
protected void |
parse(byte[] data)
Parse the component mapping from the provided content data array.
|
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
private short[] components
private byte[] type
private byte[] map
public ComponentMappingBox(byte[] data)
ComponentMappingBox
from the provided
content byte array.public ComponentMappingBox(short[] comp, byte[] t, byte[] m)
ComponentMappingBox
from the provided
component mapping.public ComponentMappingBox(Node node) throws IIOInvalidTreeException
ComponentMappingBox
based on the provided
org.w3c.dom.Node
.IIOInvalidTreeException
protected void parse(byte[] data)
public IIOMetadataNode getNativeNode()
IIOMetadataNode
from this component mapping
box. The format of this node is defined in the XML dtd and xsd
for the JP2 image file.getNativeNode
in class Box
public short[] getComponent()
public byte[] getComponentType()
public byte[] getComponentAssociation()
Copyright © 2015 Open Microscopy Environment