Package net.sf.jazzlib
Class DeflaterHuffman
java.lang.Object
net.sf.jazzlib.DeflaterHuffman
This is the DeflaterHuffman class.
This class is not thread safe. This is inherent in the API, due to the
split of deflate and setInput.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final intprivate static final int[]private final DeflaterHuffman.Treeprivate static final intprivate final short[]private static final intprivate final DeflaterHuffman.Treeprivate static final intprivate intprivate final byte[]private intprivate static final intprivate final DeflaterHuffman.Tree(package private) DeflaterPendingprivate static final intprivate static final intprivate static final intprivate static short[]private static byte[]private static short[]private static byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static shortbitReverse(int value) Reverse the bits of a 16 bit value.voidprivate final intd_code(int distance) voidflushBlock(byte[] stored, int stored_offset, int stored_len, boolean lastBlock) voidflushStoredBlock(byte[] stored, int stored_offset, int stored_len, boolean lastBlock) final booleanisFull()private final intl_code(int len) final voidreset()voidsendAllTrees(int blTreeCodes) final booleantallyDist(int dist, int len) final booleantallyLit(int lit)
-
Field Details
-
BUFSIZE
private static final int BUFSIZE- See Also:
-
LITERAL_NUM
private static final int LITERAL_NUM- See Also:
-
DIST_NUM
private static final int DIST_NUM- See Also:
-
BITLEN_NUM
private static final int BITLEN_NUM- See Also:
-
REP_3_6
private static final int REP_3_6- See Also:
-
REP_3_10
private static final int REP_3_10- See Also:
-
REP_11_138
private static final int REP_11_138- See Also:
-
EOF_SYMBOL
private static final int EOF_SYMBOL- See Also:
-
BL_ORDER
private static final int[] BL_ORDER -
bit4Reverse
- See Also:
-
pending
DeflaterPending pending -
literalTree
-
distTree
-
blTree
-
d_buf
private final short[] d_buf -
l_buf
private final byte[] l_buf -
last_lit
private int last_lit -
extra_bits
private int extra_bits -
staticLCodes
private static short[] staticLCodes -
staticLLength
private static byte[] staticLLength -
staticDCodes
private static short[] staticDCodes -
staticDLength
private static byte[] staticDLength
-
-
Constructor Details
-
DeflaterHuffman
-
-
Method Details
-
bitReverse
static short bitReverse(int value) Reverse the bits of a 16 bit value. -
reset
public final void reset() -
l_code
private final int l_code(int len) -
d_code
private final int d_code(int distance) -
sendAllTrees
public void sendAllTrees(int blTreeCodes) -
compressBlock
public void compressBlock() -
flushStoredBlock
public void flushStoredBlock(byte[] stored, int stored_offset, int stored_len, boolean lastBlock) -
flushBlock
public void flushBlock(byte[] stored, int stored_offset, int stored_len, boolean lastBlock) -
isFull
public final boolean isFull() -
tallyLit
public final boolean tallyLit(int lit) -
tallyDist
public final boolean tallyDist(int dist, int len)
-