icc.types
Class ICCProfileHeader

java.lang.Object
  |
  +--icc.types.ICCProfileHeader

public class ICCProfileHeader
extends java.lang.Object

An ICC profile contains a 128-byte header followed by a variable number of tags contained in a tag table. This class models the header portion of the profile. Most fields in the header are ints. Some, such as data and version are aggregations of ints. This class provides an api to those fields as well as the definition of standard constants which are used in the header.

See Also:
jj2000.j2k.icc.ICCProfile

Field Summary
 ICCDateTime dateTime
          Header field
 int dwCMMFlags
          Header field
 int dwCMMTypeSignature
          Header field
 int dwColorSpaceType
          Header field
 int dwCreatorSig
          Header field
 int dwDeviceAttributes1
          Header field
 int dwDeviceAttributesReserved
          Header field
 int dwDeviceManufacturer
          Header field
 int dwDeviceModel
          Header field
 int dwPCSType
          Header field
 int dwPlatformSignature
          Header field
 int dwProfileClass
          Header field
 int dwProfileSignature
          Header field
 int dwProfileSize
          Header field
 int dwRenderingIntent
          Header field
private static java.lang.String eol
           
private  byte[] header
          ICCProfile header byte array.
private static java.lang.String kdwBlueColorantTag
           
private static java.lang.String kdwBlueTRCTag
           
private static java.lang.String kdwDisplayProfile
           
private static java.lang.String kdwGrayData
           
private static java.lang.String kdwGrayTRCTag
           
private static java.lang.String kdwGreenColorantTag
           
private static java.lang.String kdwGreenTRCTag
           
private static java.lang.String kdwInputProfile
           
static int kdwProfileSignature
          Profile header signature
static int kdwProfileSigReverse
          Profile header signature
private static java.lang.String kdwRedColorantTag
           
private static java.lang.String kdwRedTRCTag
           
private static java.lang.String kdwRGBData
           
private static java.lang.String kdwXYZData
           
private static int offCMMFlags
           
private static int offCMMTypeSignature
           
private static int offColorSpaceType
           
private static int offCreatorSig
           
private static int offDateTime
           
private static int offDeviceAttributes1
           
private static int offDeviceAttributesReserved
           
private static int offDeviceManufacturer
           
private static int offDeviceModel
           
private static int offPCSIlluminant
           
private static int offPCSType
           
private static int offPlatformSignature
           
private static int offProfileClass
           
private static int offProfileSignature
           
private static int offProfileSize
           
private static int offProfileVersion
           
private static int offRenderingIntent
           
private static int offReserved
           
 XYZNumber PCSIlluminant
          Header field
 ICCProfileVersion profileVersion
          Header field
 byte[] reserved
          Header field
static int size
          Size of the header
 
Constructor Summary
ICCProfileHeader()
          Construct and empty header
ICCProfileHeader(byte[] data)
          Construct a header from a complete ICCProfile
 
Method Summary
 java.lang.String toString()
          String representation of class
 void write(java.io.RandomAccessFile raf)
          Write out this ICCProfile header to a RandomAccessFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eol

private static final java.lang.String eol

header

private byte[] header
ICCProfile header byte array.


kdwProfileSignature

public static int kdwProfileSignature
Profile header signature


kdwProfileSigReverse

public static int kdwProfileSigReverse
Profile header signature


kdwInputProfile

private static final java.lang.String kdwInputProfile
See Also:
Constant Field Values

kdwDisplayProfile

private static final java.lang.String kdwDisplayProfile
See Also:
Constant Field Values

kdwRGBData

private static final java.lang.String kdwRGBData
See Also:
Constant Field Values

kdwGrayData

private static final java.lang.String kdwGrayData
See Also:
Constant Field Values

kdwXYZData

private static final java.lang.String kdwXYZData
See Also:
Constant Field Values

kdwGrayTRCTag

private static final java.lang.String kdwGrayTRCTag
See Also:
Constant Field Values

kdwRedColorantTag

private static final java.lang.String kdwRedColorantTag
See Also:
Constant Field Values

kdwGreenColorantTag

private static final java.lang.String kdwGreenColorantTag
See Also:
Constant Field Values

kdwBlueColorantTag

private static final java.lang.String kdwBlueColorantTag
See Also:
Constant Field Values

kdwRedTRCTag

private static final java.lang.String kdwRedTRCTag
See Also:
Constant Field Values

kdwGreenTRCTag

private static final java.lang.String kdwGreenTRCTag
See Also:
Constant Field Values

kdwBlueTRCTag

private static final java.lang.String kdwBlueTRCTag
See Also:
Constant Field Values

offProfileSize

private static final int offProfileSize
See Also:
Constant Field Values

offCMMTypeSignature

private static final int offCMMTypeSignature
See Also:
Constant Field Values

offProfileVersion

private static final int offProfileVersion
See Also:
Constant Field Values

offProfileClass

private static final int offProfileClass
See Also:
Constant Field Values

offColorSpaceType

private static final int offColorSpaceType
See Also:
Constant Field Values

offPCSType

private static final int offPCSType
See Also:
Constant Field Values

offDateTime

private static final int offDateTime
See Also:
Constant Field Values

offProfileSignature

private static final int offProfileSignature
See Also:
Constant Field Values

offPlatformSignature

private static final int offPlatformSignature
See Also:
Constant Field Values

offCMMFlags

private static final int offCMMFlags
See Also:
Constant Field Values

offDeviceManufacturer

private static final int offDeviceManufacturer
See Also:
Constant Field Values

offDeviceModel

private static final int offDeviceModel
See Also:
Constant Field Values

offDeviceAttributes1

private static final int offDeviceAttributes1
See Also:
Constant Field Values

offDeviceAttributesReserved

private static final int offDeviceAttributesReserved
See Also:
Constant Field Values

offRenderingIntent

private static final int offRenderingIntent
See Also:
Constant Field Values

offPCSIlluminant

private static final int offPCSIlluminant
See Also:
Constant Field Values

offCreatorSig

private static final int offCreatorSig
See Also:
Constant Field Values

offReserved

private static final int offReserved
See Also:
Constant Field Values

size

public static final int size
Size of the header

See Also:
Constant Field Values

dwProfileSize

public int dwProfileSize
Header field


dwCMMTypeSignature

public int dwCMMTypeSignature
Header field


dwProfileClass

public int dwProfileClass
Header field


dwColorSpaceType

public int dwColorSpaceType
Header field


dwPCSType

public int dwPCSType
Header field


dwProfileSignature

public int dwProfileSignature
Header field


dwPlatformSignature

public int dwPlatformSignature
Header field


dwCMMFlags

public int dwCMMFlags
Header field


dwDeviceManufacturer

public int dwDeviceManufacturer
Header field


dwDeviceModel

public int dwDeviceModel
Header field


dwDeviceAttributes1

public int dwDeviceAttributes1
Header field


dwDeviceAttributesReserved

public int dwDeviceAttributesReserved
Header field


dwRenderingIntent

public int dwRenderingIntent
Header field


dwCreatorSig

public int dwCreatorSig
Header field


reserved

public byte[] reserved
Header field


profileVersion

public ICCProfileVersion profileVersion
Header field


dateTime

public ICCDateTime dateTime
Header field


PCSIlluminant

public XYZNumber PCSIlluminant
Header field

Constructor Detail

ICCProfileHeader

public ICCProfileHeader()
Construct and empty header


ICCProfileHeader

public ICCProfileHeader(byte[] data)
Construct a header from a complete ICCProfile

Method Detail

write

public void write(java.io.RandomAccessFile raf)
           throws java.io.IOException
Write out this ICCProfile header to a RandomAccessFile

Parameters:
raf - sink for data
Throws:
java.io.IOException

toString

public java.lang.String toString()
String representation of class

Overrides:
toString in class java.lang.Object