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(it.unimi.dsi.fastutil.booleans.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(it.unimi.dsi.fastutil.booleans.BooleanIterator iterator)
Decoder
Note that InputBitStream
implements BooleanIterator
.
public int decode(InputBitStream ibs) throws IOException
Decoder
Note that InputBitStream
implements BooleanIterator
.
decode
in interface Decoder
ibs
- an input bit stream.ibs
.IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.