|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable
ucar.jpeg.icc.tags.ICCTagTable
public class ICCTagTable
This class models an ICCTagTable as a HashTable which maps ICCTag signatures (as Integers) to ICCTags. On disk the tag table exists as a byte array conventionally aggragted into a structured sequence of types (bytes, shorts, ints, and floats. The first four bytes are the integer count of tags in the table. This is followed by an array of triplets, one for each tag. The triplets each contain three integers, which are the tag signature, the offset of the tag in the byte array and the length of the tag in bytes. The tag data follows. Each tag consists of an integer (4 bytes) tag type, a reserved integer and the tag data, which varies depending on the tag.
jj2000.j2k.icc.tags.ICCTag
,
Serialized FormConstructor Summary | |
---|---|
protected |
ICCTagTable(byte[] data)
Ctor used by factory method. |
Method Summary | |
---|---|
static ICCTagTable |
createInstance(byte[] data)
Factory method for creating a tag table from raw input. |
String |
toString()
Representation of a tag table |
void |
write(RandomAccessFile raf)
Output the table to a disk |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ICCTagTable(byte[] data)
byte
- raw tag dataMethod Detail |
---|
public String toString()
toString
in class Hashtable
public static ICCTagTable createInstance(byte[] data)
byte
- array of unstructured data representing a tag
public void write(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile which receives the table.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |