edu.udo.cs.yale.tools
Class XMLSerialization
java.lang.Object
edu.udo.cs.yale.tools.XMLSerialization
public class XMLSerialization
- extends java.lang.Object
This class handles all kinds in- and output write processes for all kinds of objects
into and from XML.
- Version:
- $Id: XMLSerialization.java,v 1.1 2006/09/05 22:22:15 ingomierswa Exp $
- Author:
- Ingo Mierswa
Method Summary |
void |
addAlias(java.lang.String name,
java.lang.Class clazz)
|
java.lang.Object |
fromXML(java.io.InputStream in)
|
java.lang.Object |
fromXML(java.io.Reader in)
|
java.lang.Object |
fromXML(java.lang.String xml)
|
java.lang.String |
getXML(java.lang.Object object)
|
static XMLSerialization |
getXMLSerialization()
Returns the singleton instance. |
void |
writeXML(java.lang.Object object,
java.io.OutputStream out)
|
void |
writeXML(java.lang.Object object,
java.io.Writer out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
singleton
private static XMLSerialization singleton
xStream
private com.thoughtworks.xstream.XStream xStream
XMLSerialization
public XMLSerialization()
addAlias
public void addAlias(java.lang.String name,
java.lang.Class clazz)
getXML
public java.lang.String getXML(java.lang.Object object)
writeXML
public void writeXML(java.lang.Object object,
java.io.OutputStream out)
writeXML
public void writeXML(java.lang.Object object,
java.io.Writer out)
fromXML
public java.lang.Object fromXML(java.lang.String xml)
fromXML
public java.lang.Object fromXML(java.io.InputStream in)
fromXML
public java.lang.Object fromXML(java.io.Reader in)
getXMLSerialization
public static XMLSerialization getXMLSerialization()
- Returns the singleton instance.
Copyright © 2001-2006