public class XmlObjectSerializerImpl extends Object implements XmlObjectSerializer
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTORS_DTD |
static String |
MULTI_OBJECT_ELEMENT |
| Constructor and Description |
|---|
XmlObjectSerializerImpl(Writer output,
boolean includeHeader,
boolean multiObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean closeStream)
Adds document end tag and optinally closes the underlying stream
|
void |
flush()
Flushes the underlying stream.
|
void |
writeObject(Object object)
Writes the next object to the stream.
|
public static final String MULTI_OBJECT_ELEMENT
public static final String CONNECTORS_DTD
public XmlObjectSerializerImpl(Writer output, boolean includeHeader, boolean multiObject)
public void writeObject(Object object)
writeObject in interface XmlObjectSerializerobject - The object to write.ConnectorException - if there is more than one object and this is not configured
for multi-object document.for a list of supported types.public void flush()
XmlObjectSerializerflush in interface XmlObjectSerializerpublic void close(boolean closeStream)
XmlObjectSerializerclose in interface XmlObjectSerializerCopyright © 2019. All rights reserved.