Class InflaterHuffmanTree
java.lang.Object
net.sf.jazzlib.InflaterHuffmanTree
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic InflaterHuffmanTreestatic InflaterHuffmanTreeprivate static final intprivate short[] -
Constructor Summary
ConstructorsConstructorDescriptionInflaterHuffmanTree(byte[] codeLengths) Constructs a Huffman tree from the array of code lengths. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbuildTree(byte[] codeLengths) intgetSymbol(StreamManipulator input) Reads the next symbol from input.
-
Field Details
-
MAX_BITLEN
private static final int MAX_BITLEN- See Also:
-
tree
private short[] tree -
defLitLenTree
-
defDistTree
-
-
Constructor Details
-
InflaterHuffmanTree
Constructs a Huffman tree from the array of code lengths.- Parameters:
codeLengths- the array of code lengths- Throws:
DataFormatException
-
-
Method Details
-
buildTree
- Throws:
DataFormatException
-
getSymbol
Reads the next symbol from input. The symbol is encoded using the huffman tree.- Parameters:
input- the input source.- Returns:
- the next symbol, or -1 if not enough input is available.
- Throws:
DataFormatException
-