|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.jpeg.icc.ICCProfile
public abstract class ICCProfile
This class models the ICCProfile file. This file is a binary file which is divided into two parts, an ICCProfileHeader followed by an ICCTagTable. The header is a straightforward list of descriptive parameters such as profile size, version, date and various more esoteric parameters. The tag table is a structured list of more complexly aggragated data describing things such as ICC curves, copyright information, descriptive text blocks, etc. Classes exist to model the header and tag table and their various constituent parts the developer is refered to these for further information on the structure and contents of the header and tag table.
jj2000.j2k.icc.types.ICCProfileHeader
,
jj2000.j2k.icc.tags.ICCTagTable
Field Summary | |
---|---|
static int |
BITS_PER_BYTE
|
static int |
BITS_PER_INT
|
static int |
BITS_PER_LONG
|
static int |
BITS_PER_SHORT
|
static int |
BLUE
RGB index. |
static int |
boolean_size
Size of native type |
static int |
byte_size
Size of native type |
static int |
BYTES_PER_INT
|
static int |
BYTES_PER_LONG
|
static int |
BYTES_PER_SHORT
|
static int |
char_size
Size of native type |
static int |
double_size
Size of native type |
static int |
float_size
Size of native type |
static int |
GRAY
Gray index. |
static int |
GREEN
RGB index. |
static int |
int_size
Size of native type |
static int |
kdwBlueColorantTag
tag signature |
static int |
kdwBlueTRCTag
tag signature |
static int |
kdwCopyrightTag
tag signature |
static int |
kdwDisplayProfile
tag type |
static int |
kdwGrayData
tag type |
static int |
kdwGrayTRCTag
tag signature |
static int |
kdwGreenColorantTag
tag signature |
static int |
kdwGreenTRCTag
tag signature |
static int |
kdwInputProfile
profile type |
static int |
kdwMediaWhiteTag
tag signature |
static int |
kdwProfileDescTag
tag signature |
static int |
kdwProfileSignature
signature |
static int |
kdwProfileSigReverse
signature |
static int |
kdwRedColorantTag
tag signature |
static int |
kdwRedTRCTag
tag signature |
static int |
kdwRGBData
tag type |
static int |
kdwXYZData
tag type |
static int |
kMonochromeInput
input type |
static int |
kThreeCompInput
input type |
static int |
long_size
Size of native type |
static int |
RED
RGB index. |
static int |
short_size
Size of native type |
Constructor Summary | |
---|---|
protected |
ICCProfile(ColorSpace csm)
ParameterList constructor |
Method Summary | |
---|---|
ICCProfileHeader |
getHeader()
Access the profile header |
static ICCDateTime |
getICCDateTime(byte[] data,
int offset)
Create an ICCDateTime from byte [] input |
static ICCProfileVersion |
getICCProfileVersion(byte[] data,
int offset)
Create an ICCProfileVersion from byte [] input |
static int |
getInt(byte[] bfr,
int off)
Create an int from a byte [4]. |
static int |
getInt(byte[] bfr,
int off,
boolean swap)
Create an int from a byte [4], with optional byte swapping. |
static int |
getIntFromString(String fourChar)
Creates an int from a 4 character String |
static long |
getLong(byte[] bfr,
int off)
Create an long from a byte [8]. |
static short |
getShort(byte[] bfr,
int off)
Create a short from a two byte []. |
static short |
getShort(byte[] bfr,
int off,
boolean swap)
Create a short from a two byte [], with optional byte swapping. |
static String |
getString(byte[] bfr,
int offset,
int length,
boolean swap)
Create a String from a byte []. |
ICCTagTable |
getTagTable()
Access the profile tag table |
static XYZNumber |
getXYZNumber(byte[] data,
int offset)
Create an XYZNumber from byte [] input |
RestrictedICCProfile |
parse()
Parse this ICCProfile into a RestrictedICCProfile which is appropriate to the data in this profile. |
static byte[] |
setInt(int d)
Separate bytes in an int into a byte array lsb to msb order. |
static byte[] |
setInt(int d,
byte[] b)
Separate bytes in an int into a byte array lsb to msb order. |
static byte[] |
setLong(long d)
Separate bytes in a long into a byte array lsb to msb order. |
static byte[] |
setLong(long d,
byte[] b)
Separate bytes in a long into a byte array lsb to msb order. |
static String |
toHexString(byte i)
Create a two character hex representation of a byte |
static String |
toHexString(int i)
Create a 8 character hex representation of a int |
static String |
toHexString(short i)
Create a 4 character hex representation of a short |
String |
toString()
Provide a suitable string representation for the class |
static String |
toString(byte[] data)
|
void |
write(RandomAccessFile os)
Output this ICCProfile to a RandomAccessFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GRAY
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int boolean_size
public static final int byte_size
public static final int char_size
public static final int short_size
public static final int int_size
public static final int float_size
public static final int long_size
public static final int double_size
public static final int BITS_PER_BYTE
public static final int BITS_PER_SHORT
public static final int BITS_PER_INT
public static final int BITS_PER_LONG
public static final int BYTES_PER_SHORT
public static final int BYTES_PER_INT
public static final int BYTES_PER_LONG
public static final int kdwProfileSignature
public static final int kdwProfileSigReverse
public static final int kdwInputProfile
public static final int kdwDisplayProfile
public static final int kdwRGBData
public static final int kdwGrayData
public static final int kdwXYZData
public static final int kMonochromeInput
public static final int kThreeCompInput
public static final int kdwGrayTRCTag
public static final int kdwRedColorantTag
public static final int kdwGreenColorantTag
public static final int kdwBlueColorantTag
public static final int kdwRedTRCTag
public static final int kdwGreenTRCTag
public static final int kdwBlueTRCTag
public static final int kdwCopyrightTag
public static final int kdwMediaWhiteTag
public static final int kdwProfileDescTag
Constructor Detail |
---|
protected ICCProfile(ColorSpace csm) throws ColorSpaceException, ICCProfileInvalidException
csb
- provides colorspace information
ColorSpaceException
ICCProfileInvalidException
Method Detail |
---|
public static int getIntFromString(String fourChar)
fourChar
- string representation of an integer
public static XYZNumber getXYZNumber(byte[] data, int offset)
data
- array containing the XYZNumber representationoffset
- start of the rep in the array
public static ICCProfileVersion getICCProfileVersion(byte[] data, int offset)
data
- array containing the ICCProfileVersion representationoffset
- start of the rep in the array
public static ICCDateTime getICCDateTime(byte[] data, int offset)
data
- array containing the ICCProfileVersion representationoffset
- start of the rep in the array
public static String getString(byte[] bfr, int offset, int length, boolean swap)
bfr
- data arrayoffset
- start of data in arraylength
- length of data in arrayswap
- swap adjacent bytes?
public static short getShort(byte[] bfr, int off, boolean swap)
bfr
- data arrayoff
- start of data in arrayswap
- swap bytes?
public static short getShort(byte[] bfr, int off)
bfr
- data arrayoff
- start of data in array
public static byte[] setInt(int d)
d
- integer to separate
public static byte[] setInt(int d, byte[] b)
d
- integer to separateb
- return output here.
public static byte[] setLong(long d)
d
- long to separate
public static byte[] setLong(long d, byte[] b)
d
- long to separateb
- return output here.
public static int getInt(byte[] bfr, int off, boolean swap)
bfr
- data arrayoff
- start of data in arrayswap
- swap bytes?
public static int getInt(byte[] bfr, int off)
bfr
- data arrayoff
- start of data in array
public static long getLong(byte[] bfr, int off)
bfr
- data arrayoff
- start of data in array
public String toString()
toString
in class Object
public static String toHexString(byte i)
i
- byte to represent
public static String toHexString(short i)
i
- short to represent
public static String toHexString(int i)
i
- int to represent
public static String toString(byte[] data)
public ICCProfileHeader getHeader()
public ICCTagTable getTagTable()
public RestrictedICCProfile parse() throws ICCProfileInvalidException
ICCProfileInvalidException
- no curve datapublic void write(RandomAccessFile os) throws IOException
os
- output file
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |