public interface FastArithmeticDecoderI
| Modifier and Type | Method and Description |
|---|---|
int |
decode(it.unimi.dsi.io.InputBitStream ibs)
Decodes a symbol.
|
void |
flush(it.unimi.dsi.io.InputBitStream ibs)
Flushes (reads) the disambiguating bits.
|
long |
getWindow()
Returns the current bit stream window.
|
void |
reposition(it.unimi.dsi.io.InputBitStream input)
Reposition the input stream.
|
void |
reset()
Resets the decoder before decoding a new message.
|
void reset()
int decode(it.unimi.dsi.io.InputBitStream ibs)
throws IOException
ibs - the input stream.IOException - if ibs does.void flush(it.unimi.dsi.io.InputBitStream ibs)
throws IOException
This method must be called when all symbols have been decoded. After
the call, exactly #BITS excess bits will be present in the
current window of the decoder. You can get them using getWindow();
usually you will then unget them to the bit stream.
ibs - the input stream.IOException - if ibs does.long getWindow()
#BITS bits.void reposition(it.unimi.dsi.io.InputBitStream input)
throws IOException
input - IOExceptionCopyright © 2018 Campagne Laboratory. All rights reserved.