public class JsonReader extends Object implements BinderReader
| Constructor and Description |
|---|
JsonReader() |
JsonReader(Options format) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
read(Class<? extends T> type,
InputStream source)
Read or deserialize an input stream into a POJO of specific type.
|
<T> T |
read(Class<? extends T> type,
Reader source)
Read or deserialize a character stream reader into a POJO of specific type.
|
<T> T |
read(Class<? extends T> type,
String source)
Read or deserialize an string into a POJO of specific type.
|
public JsonReader()
public JsonReader(Options format)
public <T> T read(Class<? extends T> type, InputStream source) throws ReaderException, MappingException
BinderReaderread in interface BinderReadertype - target typesource - an input streamReaderException - if reads failMappingExceptionpublic <T> T read(Class<? extends T> type, String source) throws ReaderException, MappingException
BinderReaderread in interface BinderReadertype - target typesource - a stringReaderException - if reads failMappingExceptionpublic <T> T read(Class<? extends T> type, Reader source) throws ReaderException, MappingException
BinderReaderread in interface BinderReadertype - target typesource - a character stream readerReaderException - if reads failMappingExceptionCopyright © 2015. All rights reserved.