|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.compression.CodeWordCoder
it.unimi.dsi.compression.Fast64CodeWordCoder
public final class Fast64CodeWordCoder
A fast coder based on a set of codewords of length at most 64.
Field Summary |
---|
Fields inherited from class it.unimi.dsi.compression.CodeWordCoder |
---|
codeWord |
Constructor Summary | |
---|---|
Fast64CodeWordCoder(BitVector[] codeWord,
long[] longCodeWord)
Creates a new codeword-based coder using the given vector of codewords. |
Method Summary | |
---|---|
int |
encode(int symbol,
OutputBitStream obs)
Encodes a symbol. |
Methods inherited from class it.unimi.dsi.compression.CodeWordCoder |
---|
codeWords, encode, flush, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Fast64CodeWordCoder(BitVector[] codeWord, long[] longCodeWord)
codeWord.length-1
, included.
codeWord
- a vector of codewords.longCodeWord
- the same codewords as those specified in codeWord
, but
as right-aligned longs written in left-to-right fashion.Method Detail |
---|
public int encode(int symbol, OutputBitStream obs) throws java.io.IOException
Coder
encode
in interface Coder
encode
in class CodeWordCoder
symbol
- a symbol.obs
- the output bit stream where the encoded symbol will be written.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |