yawn.io.serialization.xml
Class BetwixtXmlSerializer

java.lang.Object
  extended by yawn.io.serialization.xml.BetwixtXmlSerializer
All Implemented Interfaces:
ISerializer

public class BetwixtXmlSerializer
extends java.lang.Object
implements ISerializer

XML configuration serializer. $Id: BetwixtXmlSerializer.java,v 1.3 2005/04/07 17:28:30 supermarti Exp $

Version:
$Revision: 1.3 $
Author:
Alexei Guevara

Constructor Summary
BetwixtXmlSerializer()
           
 
Method Summary
 java.lang.Object deSerialize(java.lang.Class root, java.io.InputStreamReader reader)
          Reads an object of class root from a source
 void serialize(java.lang.Object network, java.io.OutputStreamWriter theDestination)
          Serializes an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BetwixtXmlSerializer

public BetwixtXmlSerializer()
Method Detail

serialize

public void serialize(java.lang.Object network,
                      java.io.OutputStreamWriter theDestination)
               throws SerializationException
Description copied from interface: ISerializer
Serializes an object.

Specified by:
serialize in interface ISerializer
Parameters:
network - The object to serialize.
theDestination - The destination where the serialized object will br writen to.
Throws:
SerializationException
See Also:
ISerializer.serialize(Object, OutputStreamWriter)

deSerialize

public java.lang.Object deSerialize(java.lang.Class root,
                                    java.io.InputStreamReader reader)
                             throws SerializationException
Description copied from interface: ISerializer
Reads an object of class root from a source

Specified by:
deSerialize in interface ISerializer
Parameters:
root - the object class to read
reader - the source to read from
Returns:
the inflated object
Throws:
SerializationException
See Also:
yawn.io.serialization.ISerializer#deSerialize(Class, Reader)


Copyright © 2003-2005 GIAA, Universidad Carlos III de Madrid. All Rights Reserved.