it.unimi.dsi.mg4j.compression
Interface Decoder

All Known Implementing Classes:
CanonicalFast64CodeWordDecoder, TreeDecoder

Deprecated. Moved to dsiutils.

@Deprecated
public interface Decoder

Decoding methods for a specific compression technique.


Method Summary
 int decode(BooleanIterator iterator)
          Deprecated. Decodes the next symbol from the given boolean iterator.
 int decode(InputBitStream ibs)
          Deprecated. Decodes the next symbol from the given input bit stream.
 

Method Detail

decode

int decode(BooleanIterator iterator)
Deprecated. 
Decodes the next symbol from the given boolean iterator.

Note that InputBitStream implements BooleanIterator.

Parameters:
iterator - a boolean iterator.
Returns:
the next symbol decoded from the bits emitted by i
Throws:
NoSuchElementException - if iterator terminates before a symbol has been decoded.

decode

int decode(InputBitStream ibs)
           throws IOException
Deprecated. 
Decodes the next symbol from the given input bit stream.

Note that InputBitStream implements BooleanIterator.

Parameters:
ibs - an input bit stream.
Returns:
the next symbol decoded from ibs.
Throws:
IOException