public class HeaderBox extends Box
| Modifier and Type | Field and Description | 
|---|---|
| private byte | bitDepth | 
| private byte | compressionType | 
| private static String[] | elementNamesCache the element names for this box's xml definition | 
| private int | height | 
| private byte | intelProp | 
| private short | numComp | 
| private byte | unknownColor | 
| private int | widthThe element values. | 
data, extraLength, length, type| Constructor and Description | 
|---|
| HeaderBox(byte[] data)Create an Image Header Box using the content data. | 
| HeaderBox(int height,
         int width,
         int numComp,
         int bitDepth,
         int compressionType,
         int unknownColor,
         int intelProp)Create an Image Header Box from the element values. | 
| HeaderBox(Node node)Constructs an Image Header Box from a Node. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | compose()Composes the content byte array from the data elements. | 
| byte | getBitDepth()Returns the bit depth for all the image components. | 
| byte | getCompressionType()Returns the compression type. | 
| static String[] | getElementNames()This method will be called by the getNativeNodeForSimpleBox of the
  class Box to get the element names. | 
| int | getHeight()Returns the height of the image. | 
| byte | getIntellectualProperty()Returns the  IntellectualPropertyflag. | 
| IIOMetadataNode | getNativeNode()Creates an  IIOMetadataNodefrom this image header box. | 
| short | getNumComponents()Returns the number of image components. | 
| byte | getUnknownColorspace()Returns the  UnknowColorspaceflag. | 
| int | getWidth()Returns the width of the image. | 
| protected void | parse(byte[] data)Parse the data elements from the byte array of the content. | 
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, writeprivate static String[] elementNames
private int width
private int height
private short numComp
private byte bitDepth
private byte compressionType
private byte unknownColor
private byte intelProp
public HeaderBox(int height,
         int width,
         int numComp,
         int bitDepth,
         int compressionType,
         int unknownColor,
         int intelProp)
public HeaderBox(byte[] data)
public HeaderBox(Node node) throws IIOInvalidTreeException
IIOInvalidTreeExceptionpublic static String[] getElementNames()
protected void parse(byte[] data)
public int getHeight()
public int getWidth()
public short getNumComponents()
public byte getCompressionType()
public byte getBitDepth()
public byte getUnknownColorspace()
UnknowColorspace flag.public byte getIntellectualProperty()
IntellectualProperty flag.public IIOMetadataNode getNativeNode()
IIOMetadataNode from this image header box.
  The format of this node is defined in the XML dtd and xsd
  for the JP2 image file.getNativeNode in class BoxCopyright © 2016 Open Microscopy Environment