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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
method
private ColorSpace.MethodEnum method
colorSpace
private ColorSpace.CSEnum colorSpace
iccProfile
private byte[] iccProfile
ColorSpecificationBox
public ColorSpecificationBox(RandomAccessIO in,
int boxStart)
throws java.io.IOException,
ColorSpaceException
- Construct a ColorSpecificationBox from an input image.
- Parameters:
in
- RandomAccessIO jp2 imageboxStart
- offset to the start of the box in the image
- Throws:
IOException,
- ColorSpaceException
java.io.IOException
ColorSpaceException
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