java.lang.Object
ClassLib.Common.java.util.zip.DeflaterHuffman
- class DeflaterHuffman
- extends java.lang.Object
DeflaterHuffman
- Version:
- $Id: DeflaterHuffman.java,v 1.5 2003/05/12 10:04:53 joewhaley Exp $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFSIZE
private static final int BUFSIZE
- See Also:
- Constant Field Values
LITERAL_NUM
private static final int LITERAL_NUM
- See Also:
- Constant Field Values
DIST_NUM
private static final int DIST_NUM
- See Also:
- Constant Field Values
BITLEN_NUM
private static final int BITLEN_NUM
- See Also:
- Constant Field Values
REP_3_6
private static final int REP_3_6
- See Also:
- Constant Field Values
REP_3_10
private static final int REP_3_10
- See Also:
- Constant Field Values
REP_11_138
private static final int REP_11_138
- See Also:
- Constant Field Values
EOF_SYMBOL
private static final int EOF_SYMBOL
- See Also:
- Constant Field Values
BL_ORDER
private static final int[] BL_ORDER
bit4Reverse
private static final java.lang.String bit4Reverse
- See Also:
- Constant Field Values
pending
DeflaterPending pending
literalTree
private DeflaterHuffman.Tree literalTree
distTree
private DeflaterHuffman.Tree distTree
blTree
private DeflaterHuffman.Tree blTree
d_buf
private short[] d_buf
l_buf
private 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
DeflaterHuffman
public DeflaterHuffman(DeflaterPending pending)
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)