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 XmlObjectSerializer
object
- 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()
XmlObjectSerializer
flush
in interface XmlObjectSerializer
public void close(boolean closeStream)
XmlObjectSerializer
close
in interface XmlObjectSerializer
Copyright © 2019. All rights reserved.