public class JodaBeanBinReader
extends java.lang.Object
The binary format is defined by JodaBeanBinWriter.
This class contains mutable state and cannot be used from multiple threads. A new instance must be created for each message.
| Constructor | Description |
|---|---|
JodaBeanBinReader(JodaBeanSer settings) |
Creates an instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected static boolean |
isArray(int typeByte) |
|
protected static boolean |
isIntegral(int typeByte) |
|
protected static boolean |
isMap(int typeByte) |
|
protected static boolean |
isString(int typeByte) |
|
Bean |
read(byte[] input) |
Reads and parses to a bean.
|
<T> T |
read(byte[] input,
java.lang.Class<T> rootType) |
Reads and parses to a bean.
|
Bean |
read(java.io.InputStream input) |
Reads and parses to a bean.
|
<T> T |
read(java.io.InputStream input,
java.lang.Class<T> rootType) |
Reads and parses to a bean.
|
protected static java.lang.String |
toHex(int b) |
Converts a byte to a hex string for debugging.
|
static java.lang.String |
visualize(byte[] input) |
Visualizes the binary data, writing to system out.
|
public JodaBeanBinReader(JodaBeanSer settings)
settings - the settings, not nullpublic static java.lang.String visualize(byte[] input)
input - the input bytes, not nullpublic Bean read(byte[] input)
input - the input bytes, not nullpublic <T> T read(byte[] input,
java.lang.Class<T> rootType)
T - the root typeinput - the input bytes, not nullrootType - the root type, not nullpublic Bean read(java.io.InputStream input)
input - the input reader, not nullpublic <T> T read(java.io.InputStream input,
java.lang.Class<T> rootType)
T - the root typeinput - the input stream, not nullrootType - the root type, not nullprotected static java.lang.String toHex(int b)
b - the byteprotected static boolean isMap(int typeByte)
throws java.io.IOException
java.io.IOExceptionprotected static boolean isArray(int typeByte)
throws java.io.IOException
java.io.IOExceptionprotected static boolean isString(int typeByte)
throws java.io.IOException
java.io.IOExceptionprotected static boolean isIntegral(int typeByte)
throws java.io.IOException
java.io.IOExceptionCopyright © 2007–2018 Joda.org. All rights reserved.