public interface PrefixCoder extends Coder
Not all coders are codeword-based (for instance, arithmetic coding
is not codeword-based). However, coders that are based on prefix-free codewords are invited
to return by means of Codec.coder() an
implementation of this interface.
Note that the coder returned by a PrefixCodec is
an implementation of this interface.
| Modifier and Type | Method and Description |
|---|---|
BitVector[] |
codeWords()
Provides access to the codewords.
|
BitVector[] codeWords()
codeWords() is
the first (leftmost) bit of the corresponding codeword: in other words, codewords are stored in
right-to-left fashion.