java.lang.Object
ClassLib.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 $
Constructor Summary |
InflaterHuffmanTree(byte[] codeLengths)
Constructs a Huffman tree from the array of code lengths. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
InflaterHuffmanTree
public InflaterHuffmanTree(byte[] codeLengths)
throws java.util.zip.DataFormatException
- Constructs a Huffman tree from the array of code lengths.
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.