public abstract class IntDecoder
extends java.lang.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 and Description |
|---|---|
static long |
EOS
A special long value which is used to indicate end-of-stream has reached.
|
protected java.io.InputStream |
in
Input stream from which the encoded bytes are read
|
| Constructor and Description |
|---|
IntDecoder() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
decode()
Decodes data received from the input stream, and returns one decoded
integer.
|
void |
reInit(java.io.InputStream in)
Sets the input stream from which the encoded data is read.
|
public static final long EOS
protected java.io.InputStream in
public void reInit(java.io.InputStream in)
public abstract long decode()
throws java.io.IOException
EOS is returned.EOS if end-of-stream
reached.java.io.IOException - if an I/O error occursCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.