public interface Coder
| Modifier and Type | Method and Description |
|---|---|
BooleanIterator |
encode(int symbol)
Encodes a symbol.
|
int |
encode(int symbol,
OutputBitStream obs)
Encodes a symbol.
|
BooleanIterator |
flush()
Flushes the coder.
|
int |
flush(OutputBitStream obs)
Flushes the coder.
|
BooleanIterator encode(int symbol)
symbol - a symbol.symbol.int encode(int symbol,
OutputBitStream obs)
throws IOException
symbol - a symbol.obs - the output bit stream where the encoded symbol will be written.IOExceptionint flush(OutputBitStream obs)
flush obs.obs - the output bit stream where the flushing bits will be written.BooleanIterator flush()