DGapIntDecoder
, EightFlagsIntDecoder
, FourFlagsIntDecoder
, SimpleIntDecoder
, VInt8IntDecoder
public abstract class IntDecoder extends Object
InputStream
. For re-usability, the
decoder's input stream can be set by (reInit(InputStream)
).
By design, Decoders are NOT thread-safe.Modifier and Type | Field | Description |
---|---|---|
static long |
EOS |
A special long value which is used to indicate end-of-stream has reached.
|
protected InputStream |
in |
Input stream from which the encoded bytes are read
|
Constructor | Description |
---|---|
IntDecoder() |
Modifier and Type | Method | Description |
---|---|---|
abstract 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.
|
public static final long EOS
protected InputStream in
public void reInit(InputStream in)
public abstract long decode() throws IOException
EOS
is returned.EOS
if end-of-stream
reached.IOException
- if an I/O error occursCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.