public class DGapIntDecoder extends IntDecoder
IntDecoder which wraps another IntDecoder and reverts the
d-gap that was encoded by DGapIntEncoder. The wrapped decoder
performs the actual decoding, while this class simply adds the decoded value
to the previous value.EOS, in| Constructor and Description |
|---|
DGapIntDecoder(IntDecoder decoder) |
| Modifier and Type | Method and Description |
|---|---|
long |
decode()
Decodes data received from the input stream, and returns one decoded
integer.
|
void |
reInit(InputStream in)
Sets the input stream from which the encoded data is read.
|
String |
toString() |
public DGapIntDecoder(IntDecoder decoder)
public long decode()
throws IOException
IntDecoderIntDecoder.EOS is returned.decode in class IntDecoderIntDecoder.EOS if end-of-stream
reached.IOException - if an I/O error occurspublic void reInit(InputStream in)
IntDecoderreInit in class IntDecoder