view
Class LZWStringTable
java.lang.Object
view.LZWStringTable
class LZWStringTable
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RES_CODES
private static final int RES_CODES
- See Also:
- Constant Field Values
HASH_FREE
private static final short HASH_FREE
- See Also:
- Constant Field Values
NEXT_FIRST
private static final short NEXT_FIRST
- See Also:
- Constant Field Values
MAXBITS
private static final int MAXBITS
- See Also:
- Constant Field Values
MAXSTR
private static final int MAXSTR
- See Also:
- Constant Field Values
HASHSIZE
private static final short HASHSIZE
- See Also:
- Constant Field Values
HASHSTEP
private static final short HASHSTEP
- See Also:
- Constant Field Values
strChr_
byte[] strChr_
strNxt_
short[] strNxt_
strHsh_
short[] strHsh_
numStrings_
short numStrings_
LZWStringTable
public LZWStringTable()
AddCharString
public int AddCharString(short index,
byte b)
- Parameters:
index - b -
- Returns:
- int
FindCharString
public short FindCharString(short index,
byte b)
- Parameters:
index - b -
- Returns:
- short
ClearTable
public void ClearTable(int codesize)
- Parameters:
codesize -
Hash
public static int Hash(short index,
byte lastbyte)
- Parameters:
index - lastbyte -
- Returns:
- int