public class BZip2HuffmanStageDecoder extends Object
Constructor and Description |
---|
BZip2HuffmanStageDecoder(BZip2BitInputStream bitInputStream,
int alphabetSize,
byte[][] tableCodeLengths,
byte[] selectors) |
Modifier and Type | Method and Description |
---|---|
int |
nextSymbol()
Decodes and returns the next symbol
|
public BZip2HuffmanStageDecoder(BZip2BitInputStream bitInputStream, int alphabetSize, byte[][] tableCodeLengths, byte[] selectors)
bitInputStream
- The BZip2BitInputStream from which Huffman codes are readalphabetSize
- The total number of codes (uniform for each table)tableCodeLengths
- The Canonical Huffman code lengths for each tableselectors
- The Huffman table number to use for each group of 50 symbolspublic int nextSymbol() throws IOException
IOException
- if the end of the input stream is reached while decodingCopyright © 2016. All rights reserved.