Package com.helger.commons.codec
Class LZWCodec.AbstractLZWDictionary
- java.lang.Object
-
- com.helger.commons.codec.LZWCodec.AbstractLZWDictionary
-
- Direct Known Subclasses:
LZWCodec.LZWDecodeDictionary,LZWCodec.LZWEncodeDictionary
- Enclosing class:
- LZWCodec
protected abstract static class LZWCodec.AbstractLZWDictionary extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intCODE_CLEARTABLESpecial code to clear the tablestatic intCODE_EOFSpecial code for end of fileprotected byte[][]m_aTabprotected intm_nCodeBitsprotected intm_nFreeCodestatic intMAX_CODEMaximum index
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractLZWDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(byte[] aByteSeq, boolean bForEncode)intgetNextFreeCode()voidreset()
-
-
-
Field Detail
-
MAX_CODE
public static final int MAX_CODE
Maximum index- See Also:
- Constant Field Values
-
CODE_CLEARTABLE
public static final int CODE_CLEARTABLE
Special code to clear the table- See Also:
- Constant Field Values
-
CODE_EOF
public static final int CODE_EOF
Special code for end of file- See Also:
- Constant Field Values
-
m_aTab
protected byte[][] m_aTab
-
m_nFreeCode
protected int m_nFreeCode
-
m_nCodeBits
protected int m_nCodeBits
-
-
Method Detail
-
reset
public void reset()
-
addEntry
public final void addEntry(@Nonnull byte[] aByteSeq, boolean bForEncode)
-
getNextFreeCode
@Nonnegative public final int getNextFreeCode()
-
-