public class FourFlagsIntDecoder extends IntDecoder
FourFlagsIntEncoder
. Scans
the indicator
, one flag (1-bits) at a time, and decodes extra
data using VInt8IntDecoder
.FourFlagsIntEncoder
EOS, in
Constructor and Description |
---|
FourFlagsIntDecoder() |
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 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