java.lang.Object
gnu.java.awt.color.TagEntry
- public class TagEntry
- extends java.lang.Object
TagEntry - stores a profile tag.
These are conveniently stored in a hashtable with the tag signature
as a key. A legal profile can only have one tag with a given sig,
so we can conveniently ignore collisions.
|
Constructor Summary |
TagEntry(int sig,
byte[] data)
|
TagEntry(int sig,
int offset,
int size,
byte[] data)
|
entrySize
public static final int entrySize
- See Also:
- Constant Field Values
signature
private int signature
size
private int size
offset
private int offset
data
private byte[] data
TagEntry
public TagEntry(int sig,
int offset,
int size,
byte[] data)
TagEntry
public TagEntry(int sig,
byte[] data)
getData
public byte[] getData()
hashKey
public java.lang.String hashKey()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
getSignature
public int getSignature()
getSize
public int getSize()
getOffset
public int getOffset()
setOffset
public void setOffset(int offset)
tagHashKey
public static java.lang.String tagHashKey(int sig)