public class JodaBeanXmlReader extends Object
The XML format is defined by JodaBeanXmlWriter.
This class contains mutable state and cannot be used from multiple threads. A new instance must be created for each message.
| Constructor and Description |
|---|
JodaBeanXmlReader(JodaBeanSer settings)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Bean |
read(InputStream input)
Reads and parses to a bean.
|
<T> T |
read(InputStream input,
Class<T> rootType)
Reads and parses to a bean.
|
Bean |
read(Reader input)
Reads and parses to a bean.
|
<T> T |
read(Reader input,
Class<T> rootType)
Reads and parses to a bean.
|
Bean |
read(String input)
Reads and parses to a bean.
|
<T> T |
read(String input,
Class<T> rootType)
Reads and parses to a bean.
|
public JodaBeanXmlReader(JodaBeanSer settings)
settings - the settings, not nullpublic Bean read(String input)
input - the input string, not nullpublic <T> T read(String input, Class<T> rootType)
T - the root typeinput - the input string, not nullrootType - the root type, not nullpublic Bean read(InputStream input)
input - the input reader, not nullpublic <T> T read(InputStream input, Class<T> rootType)
T - the root typeinput - the input stream, not nullrootType - the root type, not nullpublic Bean read(Reader input)
input - the input reader, not nullCopyright © 2007–2017 Joda.org. All rights reserved.