|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.bin.JodaBeanBinReader
public class JodaBeanBinReader
Provides the ability for a Joda-Bean to read from a binary format.
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 Summary | |
|---|---|
JodaBeanBinReader(JodaBeanSer settings)
Creates an instance. |
|
| Method Summary | ||
|---|---|---|
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. |
|
|
read(byte[] input,
Class<T> rootType)
Reads and parses to a bean. |
|
Bean |
read(InputStream input)
Reads and parses to a bean. |
|
|
read(InputStream input,
Class<T> rootType)
Reads and parses to a bean. |
|
protected static String |
toHex(int b)
Converts a byte to a hex string for debugging. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JodaBeanBinReader(JodaBeanSer settings)
settings - the settings, not null| Method Detail |
|---|
public Bean read(byte[] input)
input - the input bytes, not null
public <T> T read(byte[] input,
Class<T> rootType)
T - the root typeinput - the input bytes, not nullrootType - the root type, not null
public Bean read(InputStream input)
input - the input reader, not null
public <T> T read(InputStream input,
Class<T> rootType)
T - the root typeinput - the input stream, not nullrootType - the root type, not null
protected static String toHex(int b)
b - the byte
protected static boolean isMap(int typeByte)
throws IOException
IOException
protected static boolean isArray(int typeByte)
throws IOException
IOException
protected static boolean isString(int typeByte)
throws IOException
IOException
protected static boolean isIntegral(int typeByte)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||