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
IntDecoder
IntDecoder.EOS
is returned.decode
in class IntDecoder
IntDecoder.EOS
if end-of-stream
reached.IOException
- if an I/O error occurspublic void reInit(InputStream in)
IntDecoder
reInit
in class IntDecoder