|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.jpeg.icc.tags.ICCTag
public abstract class ICCTag
An ICC profile contains a 128-byte header followed by a variable number of tags contained in a tag table. Each tag is a structured block of ints. The tags share a common format on disk starting with a signature, an offset to the tag data, and a length of the tag data. The tag data itself is found at the given offset in the file and consists of a tag type int, followed by a reserved int, followed by a data block, the structure of which is unique to the tag type.
This class is the abstract super class of all tags. It models that part of the structure which is common among tags of all types.
It also contains the definitions of the various tag types.
jj2000.j2k.icc.tags.ICCTagTable
Field Summary | |
---|---|
int |
count
size of the tag data in the array |
byte[] |
data
Tag data |
int |
offset
offset to tag data in the array |
int |
signature
Tag id |
int |
type
Tag type |
Constructor Summary | |
---|---|
protected |
ICCTag(int signature,
byte[] data,
int offset,
int count)
Ued by subclass initialization to store the state common to all tags |
Method Summary | |
---|---|
static ICCTag |
createInstance(int signature,
byte[] data,
int offset,
int count)
Factory method for creating a tag of a specific type. |
static String |
signatureString(int signature)
Create a string representation of the signature |
String |
toString()
|
static String |
typeString(int type)
Create a string representation of the tag type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int signature
public final int type
public final byte[] data
public final int offset
public final int count
Constructor Detail |
---|
protected ICCTag(int signature, byte[] data, int offset, int count)
signature
- tag being createddata
- byte array containg embedded tag dataoffset
- to tag data in the arraycount
- size of tag data in bytesMethod Detail |
---|
public static String typeString(int type)
type
- input
public static String signatureString(int signature)
signature
- input
public static ICCTag createInstance(int signature, byte[] data, int offset, int count)
signature
- tag to createdata
- byte array containg embedded tag dataoffset
- to tag data in the arraycount
- size of tag data in bytes
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |