yawn.io.serialization.xml
Class CastorXmlSerializer

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

public class CastorXmlSerializer
extends java.lang.Object
implements ISerializer

XML serializer based on Castor (@link http://castor.exolab.org) $Id: CastorXmlSerializer.java,v 1.3 2005/04/07 17:28:30 supermarti Exp $

Version:
$Revision: 1.3 $
Author:
Alexei Guevara

Constructor Summary
CastorXmlSerializer()
           
 
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 writer)
          Serializes an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CastorXmlSerializer

public CastorXmlSerializer()
Method Detail

serialize

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

Specified by:
serialize in interface ISerializer
Parameters:
network - The object to serialize.
writer - 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.