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) |
public DGapIntDecoder(IntDecoder decoder)
public long decode() throws java.io.IOException
IntDecoder
IntDecoder.EOS
is returned.decode
in class IntDecoder
IntDecoder.EOS
if end-of-stream
reached.java.io.IOException
- if an I/O error occurspublic void reInit(java.io.InputStream in)
IntDecoder
reInit
in class IntDecoder
public java.lang.String toString()
toString
in class java.lang.Object