|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.json.JodaBeanSimpleJsonReader
public class JodaBeanSimpleJsonReader
Provides the ability for a Joda-Bean to read from JSON.
The JSON format is defined by JodaBeanJsonWriter.
This class contains mutable state and cannot be used from multiple threads. A new instance must be created for each message.
| Constructor Summary | |
|---|---|
JodaBeanSimpleJsonReader(JodaBeanSer settings)
Creates an instance. |
|
| Method Summary | ||
|---|---|---|
|
read(Reader input,
Class<T> rootType)
Reads and parses to a bean. |
|
|
read(String input,
Class<T> rootType)
Reads and parses to a bean. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JodaBeanSimpleJsonReader(JodaBeanSer settings)
settings - the settings, not null| Method Detail |
|---|
public <T> T read(String input,
Class<T> rootType)
T - the root typeinput - the input string, not nullrootType - the root type, not null
public <T> T read(Reader input,
Class<T> rootType)
T - the root typeinput - the input reader, not nullrootType - the root type, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||