colorspace.boxes
Class ColorSpecificationBox

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

public final class ColorSpecificationBox
extends JP2Box

This class models the Color Specification Box in a JP2 image.


Nested Class Summary
 
Nested classes inherited from class colorspace.boxes.JP2Box
JP2Box.BoxType
 
Field Summary
private  ColorSpace.CSEnum colorSpace
           
private  byte[] iccProfile
           
private  ColorSpace.MethodEnum method
           
 
Fields inherited from class colorspace.boxes.JP2Box
boxEnd, boxStart, dataStart, eol, in, length, type
 
Constructor Summary
ColorSpecificationBox(RandomAccessIO in, int boxStart)
          Construct a ColorSpecificationBox from an input image.
 
Method Summary
 ColorSpace.CSEnum getColorSpace()
           
 java.lang.String getColorSpaceString()
           
 byte[] getICCProfile()
           
 ColorSpace.MethodEnum getMethod()
           
 java.lang.String getMethodString()
           
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

method

private ColorSpace.MethodEnum method

colorSpace

private ColorSpace.CSEnum colorSpace

iccProfile

private byte[] iccProfile
Constructor Detail

ColorSpecificationBox

public ColorSpecificationBox(RandomAccessIO in,
                             int boxStart)
                      throws java.io.IOException,
                             ColorSpaceException
Construct a ColorSpecificationBox 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

readBox

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

java.io.IOException
ColorSpaceException

getMethod

public ColorSpace.MethodEnum getMethod()

getColorSpace

public ColorSpace.CSEnum getColorSpace()

getColorSpaceString

public java.lang.String getColorSpaceString()

getMethodString

public java.lang.String getMethodString()

getICCProfile

public byte[] getICCProfile()

toString

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

Overrides:
toString in class java.lang.Object