org.objectweb.telosys.util.serial
Class FileSerializer

java.lang.Object
  extended byorg.objectweb.telosys.util.serial.FileSerializer

public class FileSerializer
extends java.lang.Object

File serializer


Constructor Summary
FileSerializer(java.lang.String sFileName)
          Constructor
 
Method Summary
 java.lang.Object read()
          Unserializes an object by reading the file defined by the constructor
 void write(java.lang.Object obj)
          Serializes the given object in the file defined by the constructor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSerializer

public FileSerializer(java.lang.String sFileName)
Constructor

Parameters:
sFileName - the file where to serialize the given object
Method Detail

write

public void write(java.lang.Object obj)
           throws TelosysException
Serializes the given object in the file defined by the constructor

Parameters:
obj -
Throws:
TelosysException

read

public java.lang.Object read()
                      throws TelosysException
Unserializes an object by reading the file defined by the constructor

Returns:
Throws:
TelosysException