Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.java.awt.color
Class TagEntry  view TagEntry download TagEntry.java

java.lang.Object
  extended bygnu.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.


Field Summary
private  byte[] data
           
static int entrySize
           
private  int offset
           
private  int signature
           
private  int size
           
 
Constructor Summary
TagEntry(int sig, byte[] data)
           
TagEntry(int sig, int offset, int size, byte[] data)
           
 
Method Summary
 byte[] getData()
           
 int getOffset()
           
 int getSignature()
           
 int getSize()
           
 java.lang.String hashKey()
           
 void setOffset(int offset)
           
static java.lang.String tagHashKey(int sig)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

TagEntry

public TagEntry(int sig,
                int offset,
                int size,
                byte[] data)

TagEntry

public TagEntry(int sig,
                byte[] data)
Method Detail

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)