expandCode
added by Robin Luiten
The strLen table to give quick access to the length of an expanded
code for use by the expandCode
method added by Robin.
Modifier and Type | Field and Description |
---|---|
private static final short | |
private static final short | |
private static final short | |
private static final int | |
private static final int | |
private static final short | |
pack-priv short | |
private static final int | RES_CODES
codesize + Reserved Codes |
pack-priv byte[] | |
pack-priv short[] | |
pack-priv int[] | |
pack-priv short[] |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public int | |
public void | |
public void | |
public int | |
public short | |
public static int |
HASH_FREE | back to summary |
---|---|
private static final short HASH_FREE |
HASHSIZE | back to summary |
---|---|
private static final short HASHSIZE |
HASHSTEP | back to summary |
---|---|
private static final short HASHSTEP |
MAXBITS | back to summary |
---|---|
private static final int MAXBITS |
MAXSTR | back to summary |
---|---|
private static final int MAXSTR |
NEXT_FIRST | back to summary |
---|---|
private static final short NEXT_FIRST |
numStrings | back to summary |
---|---|
pack-priv short numStrings |
RES_CODES | back to summary |
---|---|
private static final int RES_CODES codesize + Reserved Codes |
strChr | back to summary |
---|---|
pack-priv byte[] strChr |
strHsh | back to summary |
---|---|
pack-priv short[] strHsh |
strLen | back to summary |
---|---|
pack-priv int[] strLen |
strNxt | back to summary |
---|---|
pack-priv short[] strNxt |
LZWStringTable | back to summary |
---|---|
public LZWStringTable() |
addCharString | back to summary |
---|---|
public int addCharString(short index, byte b) |
clearTable | back to summary |
---|---|
public void clearTable(int codesize) |
dump | back to summary |
---|---|
public void dump(PrintStream out) |
expandCode | back to summary |
---|---|
public int expandCode(byte[] buf, int offset, short code, int skipHead) |
findCharString | back to summary |
---|---|
public short findCharString(short index, byte b) |
hash | back to summary |
---|---|
public static int hash(short index, byte lastbyte) |