public class XmlSAXReader extends Object implements BinderReader
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<com.abubusoft.kripton.binder.xml.XmlSAXReader.Holder> |
localBuilder |
| Constructor and Description |
|---|
XmlSAXReader() |
XmlSAXReader(BinderOptions 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.
|
protected static final ThreadLocal<com.abubusoft.kripton.binder.xml.XmlSAXReader.Holder> localBuilder
public XmlSAXReader()
public XmlSAXReader(BinderOptions 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 © 2016. All rights reserved.