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

Quick Search    Search Deep

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

java.lang.Object
  extended byClassLib.Common.java.util.zip.InflaterHuffmanTree

class InflaterHuffmanTree
extends java.lang.Object

InflaterHuffmanTree

Version:
$Id: InflaterHuffmanTree.java,v 1.5 2003/05/12 10:04:53 joewhaley Exp $

Field Summary
static InflaterHuffmanTree defDistTree
           
static InflaterHuffmanTree defLitLenTree
           
private static int MAX_BITLEN
           
private  short[] tree
           
 
Constructor Summary
InflaterHuffmanTree(byte[] codeLengths)
          Constructs a Huffman tree from the array of code lengths.
 
Method Summary
private  void buildTree(byte[] codeLengths)
           
 int getSymbol(StreamManipulator input)
          Reads the next symbol from input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_BITLEN

private static final int MAX_BITLEN
See Also:
Constant Field Values

tree

private short[] tree

defLitLenTree

public static InflaterHuffmanTree defLitLenTree

defDistTree

public static InflaterHuffmanTree defDistTree
Constructor Detail

InflaterHuffmanTree

public InflaterHuffmanTree(byte[] codeLengths)
                    throws java.util.zip.DataFormatException
Constructs a Huffman tree from the array of code lengths.

Method Detail

buildTree

private void buildTree(byte[] codeLengths)
                throws java.util.zip.DataFormatException

getSymbol

public int getSymbol(StreamManipulator input)
              throws java.util.zip.DataFormatException
Reads the next symbol from input. The symbol is encoded using the huffman tree.