|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.bin.MsgPack
org.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.
| Constructor Summary | |
|---|---|
JodaBeanBinReader(JodaBeanSer settings)
Creates an instance. |
|
| Method Summary | ||
|---|---|---|
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. |
|
| Methods inherited from class org.joda.beans.ser.bin.MsgPack |
|---|
isArray, isIntegral, isMap, isString, toHex |
| 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||