public static class Boss.Reader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.io.InputStream |
in |
protected boolean |
showTrace |
protected boolean |
treeMode |
| Constructor and Description |
|---|
Reader(byte[] bytes) |
Reader(java.io.InputStream stream) |
Reader(java.io.InputStream stream,
BiDeserializer deserializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T> T |
read()
Read next object from the stream
|
java.lang.Object[] |
readArray() |
java.math.BigInteger |
readBigInteger()
read object and cast it to BigInteger
|
byte[] |
readBinary()
Convert next object ot byte[] (unless null that is null).
|
Bytes |
readBytes()
Read object and cast it to Bytes
|
int |
readInt() |
long |
readLong() |
java.util.Map<java.lang.String,java.lang.Object> |
readMap() |
void |
setTrace(boolean on) |
protected void |
trace(java.lang.String s) |
void |
traceObject() |
protected java.io.InputStream in
protected boolean treeMode
protected boolean showTrace
public Reader(byte[] bytes)
public Reader(java.io.InputStream stream,
BiDeserializer deserializer)
public Reader(java.io.InputStream stream)
public void traceObject()
throws java.io.IOException
java.io.IOExceptionpublic void setTrace(boolean on)
protected void trace(java.lang.String s)
public <T> T read()
throws java.io.IOException
T - expected object typejava.io.IOExceptionpublic int readInt()
throws java.io.IOException
java.io.IOExceptionpublic Bytes readBytes() throws java.io.IOException
java.io.IOExceptionpublic byte[] readBinary()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object[] readArray()
throws java.io.IOException
java.io.IOExceptionpublic java.math.BigInteger readBigInteger()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,java.lang.Object> readMap()
throws java.io.IOException
java.io.IOExceptionpublic long readLong()
throws java.io.IOException
java.io.IOException