org.pojava.persistence.serial
Class XmlSerializer

java.lang.Object
  extended by org.pojava.persistence.serial.XmlSerializer

public class XmlSerializer
extends Object

The XmlSerializer class converts a Java Object to XML.

Author:
John Pile

Constructor Summary
XmlSerializer()
          Construct a new serializer
XmlSerializer(XmlDefs config)
          Construct an XmlSerializer using a custom configuration object.
 
Method Summary
 String toXml(Object obj)
          Convert an Object tree to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSerializer

public XmlSerializer()
Construct a new serializer


XmlSerializer

public XmlSerializer(XmlDefs config)
Construct an XmlSerializer using a custom configuration object. Be careful not to use the same configuration object concurrently.

Parameters:
config -
Method Detail

toXml

public String toXml(Object obj)
Convert an Object tree to XML.

Parameters:
obj -
Returns:
XML produced from an object tree


Copyright © 2011. All Rights Reserved.