ucar.jpeg.colorspace.boxes
Class ColorSpecificationBox

java.lang.Object
  extended by ucar.jpeg.colorspace.boxes.JP2Box
      extended by ucar.jpeg.colorspace.boxes.ColorSpecificationBox

public final class ColorSpecificationBox
extends JP2Box

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

Version:
1.0
Author:
Bruce A. Kern

Nested Class Summary
 
Nested classes/interfaces inherited from class ucar.jpeg.colorspace.boxes.JP2Box
JP2Box.BoxType
 
Field Summary
 
Fields inherited from class ucar.jpeg.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()
           
 String getColorSpaceString()
           
 byte[] getICCProfile()
           
 ColorSpace.MethodEnum getMethod()
           
 String getMethodString()
           
 String toString()
          Return a suitable String representation of the class instance.
 
Methods inherited from class ucar.jpeg.colorspace.boxes.JP2Box
getTypeString, getTypeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorSpecificationBox

public ColorSpecificationBox(RandomAccessIO in,
                             int boxStart)
                      throws 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
IOException
ColorSpaceException
Method Detail

getMethod

public ColorSpace.MethodEnum getMethod()

getColorSpace

public ColorSpace.CSEnum getColorSpace()

getColorSpaceString

public String getColorSpaceString()

getMethodString

public String getMethodString()

getICCProfile

public byte[] getICCProfile()

toString

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

Overrides:
toString in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.