public class XmlPullWriter extends Object implements BinderWriter
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<XmlSerializer> |
localSerialzer
one thread, one serializer
|
protected BinderOptions |
options |
| Constructor and Description |
|---|
XmlPullWriter() |
XmlPullWriter(BinderOptions options) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
validate(Object source,
Writer out) |
String |
write(Object source)
Write POJO into string.
|
void |
write(Object source,
OutputStream os)
Write POJO into output stream of bytes.
|
void |
write(Object source,
Writer out)
Write POJO into character stream.
|
protected void |
writeObject(XmlSerializer serializer,
Object source,
String namespace) |
protected BinderOptions options
protected static final ThreadLocal<XmlSerializer> localSerialzer
public XmlPullWriter()
public XmlPullWriter(BinderOptions options)
public void write(Object source, Writer out) throws WriterException, MappingException
BinderWriterwrite in interface BinderWritersource - an POJOout - a character streamWriterException - if writes failMappingExceptionpublic void write(Object source, OutputStream os) throws WriterException, MappingException
BinderWriterwrite in interface BinderWritersource - an POJOos - an output stream of bytes.WriterException - if writes failMappingExceptionprotected void writeObject(XmlSerializer serializer, Object source, String namespace) throws Exception
Exceptionpublic String write(Object source) throws WriterException, MappingException
BinderWriterwrite in interface BinderWritersource - an POJOWriterException - if writes failMappingExceptionCopyright © 2016. All rights reserved.