colorspace.boxes
Class ImageHeaderBox

java.lang.Object
  |
  +--colorspace.boxes.JP2Box
        |
        +--colorspace.boxes.ImageHeaderBox

public final class ImageHeaderBox
extends JP2Box

This class models the Image Header box contained in a JP2 image. It is a stub class here since for colormapping the knowlege of the existance of the box in the image is sufficient.


Nested Class Summary
 
Nested classes inherited from class colorspace.boxes.JP2Box
JP2Box.BoxType
 
Field Summary
(package private)  short bpc
           
(package private)  short c
           
(package private)  long height
           
(package private)  boolean ipr
           
(package private)  int nc
           
(package private)  boolean unk
           
(package private)  long width
           
 
Fields inherited from class colorspace.boxes.JP2Box
boxEnd, boxStart, dataStart, eol, in, length, type
 
Constructor Summary
ImageHeaderBox(RandomAccessIO in, int boxStart)
          Construct an ImageHeaderBox from an input image.
 
Method Summary
(package private)  void readBox()
          Analyze the box content.
 java.lang.String toString()
          Return a suitable String representation of the class instance.
 
Methods inherited from class colorspace.boxes.JP2Box
getTypeString, getTypeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

height

long height

width

long width

nc

int nc

bpc

short bpc

c

short c

unk

boolean unk

ipr

boolean ipr
Constructor Detail

ImageHeaderBox

public ImageHeaderBox(RandomAccessIO in,
                      int boxStart)
               throws java.io.IOException,
                      ColorSpaceException
Construct an ImageHeaderBox from an input image.

Parameters:
in - RandomAccessIO jp2 image
boxStart - offset to the start of the box in the image
Throws:
IOException, - ColorSpaceException
java.io.IOException
ColorSpaceException
Method Detail

toString

public java.lang.String toString()
Return a suitable String representation of the class instance.

Overrides:
toString in class java.lang.Object

readBox

void readBox()
       throws java.io.IOException
Analyze the box content.

java.io.IOException