Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ClassLib.Common.java.util.zip
Class DeflaterHuffman  view DeflaterHuffman download DeflaterHuffman.java

java.lang.Object
  extended byClassLib.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 $

Nested Class Summary
(package private)  class DeflaterHuffman.Tree
           
 
Field Summary
private static java.lang.String bit4Reverse
           
private static int BITLEN_NUM
           
private static int[] BL_ORDER
           
private  DeflaterHuffman.Tree blTree
           
private static int BUFSIZE
           
private  short[] d_buf
           
private static int DIST_NUM
           
private  DeflaterHuffman.Tree distTree
           
private static int EOF_SYMBOL
           
private  int extra_bits
           
private  byte[] l_buf
           
private  int last_lit
           
private static int LITERAL_NUM
           
private  DeflaterHuffman.Tree literalTree
           
(package private)  DeflaterPending pending
           
private static int REP_11_138
           
private static int REP_3_10
           
private static int REP_3_6
           
private static short[] staticDCodes
           
private static byte[] staticDLength
           
private static short[] staticLCodes
           
private static byte[] staticLLength
           
 
Constructor Summary
DeflaterHuffman(DeflaterPending pending)
           
 
Method Summary
(package private) static short bitReverse(int value)
          Reverse the bits of a 16 bit value.
 void compressBlock()
           
private  int d_code(int distance)
           
 void flushBlock(byte[] stored, int stored_offset, int stored_len, boolean lastBlock)
           
 void flushStoredBlock(byte[] stored, int stored_offset, int stored_len, boolean lastBlock)
           
 boolean isFull()
           
private  int l_code(int len)
           
 void reset()
           
 void sendAllTrees(int blTreeCodes)
           
 boolean tallyDist(int dist, int len)
           
 boolean tallyLit(int lit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DeflaterHuffman

public DeflaterHuffman(DeflaterPending pending)
Method Detail

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)