|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.piece.LZWCodec.LZWTrie
protected class LZWCodec.LZWTrie
Dictionary implemented by trie-like structure (represented by binary tree - first son is son, second one is brother) each entry holds only one character. Each word in the dictionary is represented by a path from root to its vertex.
Field Summary | |
---|---|
protected int |
actualPos
Actual index for trie traversal. |
protected int |
clearDir
Clear-directory command. |
protected int |
codeSize
Actual codeword length in bits. |
protected int |
endOfData
End-of-Data command. |
protected boolean |
eod
End-of-Data status. |
protected int |
firstCode
First free phrase code. |
protected boolean |
fullCode
True if code-table is full and is waiting for expansion. |
protected int |
character
|
protected int |
initCodeSize
Initial code size in bits (for dictionary re-initialization). |
protected int |
maxCode
Accelerator: (1 << codeSize) - 1. |
protected int |
maxSymbol
Maximal symbol value. |
int |
NIL
Void reference value. |
protected int |
oldCode
|
protected int[] |
phrase
Holds actual phrase. |
protected int |
phrasePos
Position in actual phrase. |
protected java.util.ArrayList<cz.cuni.jagrlib.piece.LZWTrieEntry> |
table
Internal vocabulary representation (trie). |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int NIL
protected int maxSymbol
protected int clearDir
protected int endOfData
protected int firstCode
protected java.util.ArrayList<cz.cuni.jagrlib.piece.LZWTrieEntry> table
protected int actualPos
protected int codeSize
protected int initCodeSize
protected int maxCode
protected boolean fullCode
protected boolean eod
protected int[] phrase
protected int phrasePos
protected int character
protected int oldCode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |