org.identityconnectors.framework.impl.serializer.xml
Class XmlObjectSerializerImpl

java.lang.Object
  extended by org.identityconnectors.framework.impl.serializer.xml.XmlObjectSerializerImpl
All Implemented Interfaces:
XmlObjectSerializer

public class XmlObjectSerializerImpl
extends Object
implements XmlObjectSerializer


Field Summary
static String CONNECTORS_DTD
           
static String MULTI_OBJECT_ELEMENT
           
 
Constructor Summary
XmlObjectSerializerImpl(Writer output, boolean includeHeader, boolean multiObject)
           
 
Method Summary
 void close(boolean closeStream)
           
 void flush()
           
 void writeObject(Object object)
          Writes the next object to the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MULTI_OBJECT_ELEMENT

public static final String MULTI_OBJECT_ELEMENT
See Also:
Constant Field Values

CONNECTORS_DTD

public static final String CONNECTORS_DTD
See Also:
Constant Field Values
Constructor Detail

XmlObjectSerializerImpl

public XmlObjectSerializerImpl(Writer output,
                               boolean includeHeader,
                               boolean multiObject)
Method Detail

writeObject

public void writeObject(Object object)
Writes the next object to the stream.

Specified by:
writeObject in interface XmlObjectSerializer
Parameters:
object - The object to write.
Throws:
ConnectorException - if there is more than one object and this is not configured for multi-object document.
See Also:
for a list of supported types.

flush

public void flush()
Specified by:
flush in interface XmlObjectSerializer

close

public void close(boolean closeStream)
Specified by:
close in interface XmlObjectSerializer


Copyright © 2011. All Rights Reserved.