public abstract class ICCTag extends Object
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| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier | Constructor and Description |
|---|---|
protected |
ICCTag(int signature,
byte[] data,
int offset,
int count)
Ued by subclass initialization to store the state common to all tags
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public final int signature
public final int type
public final byte[] data
public final int offset
public final int count
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 bytespublic static String typeString(int type)
type - inputpublic static String signatureString(int signature)
signature - inputpublic 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 bytesCopyright © 2015. All rights reserved.