public final class CanonicalFast64CodeWordDecoder extends Object implements Decoder, Serializable
| Constructor and Description |
|---|
CanonicalFast64CodeWordDecoder(int[] codeWordLength,
int[] symbol)
Creates a new codeword-based decoder using the given vector of codewords lengths and
a symbol array.
|
| Modifier and Type | Method and Description |
|---|---|
int |
decode(BooleanIterator iterator)
Decodes the next symbol from the given boolean iterator.
|
int |
decode(InputBitStream ibs)
Decodes the next symbol from the given input bit stream.
|
public CanonicalFast64CodeWordDecoder(int[] codeWordLength,
int[] symbol)
codeWordLength - a vector of nondecreasing codeword lengths suitable for a canonical code.symbol - a parallel array of symbols corresponding to each codeword length.public int decode(BooleanIterator iterator)
DecoderNote that InputBitStream implements BooleanIterator.
public int decode(InputBitStream ibs) throws IOException
DecoderNote that InputBitStream implements BooleanIterator.
decode in interface Decoderibs - an input bit stream.ibs.IOException