org.objectweb.speedo.mim.lib
Class SpeedoPOSerializer

java.lang.Object
  extended by org.objectweb.speedo.mim.lib.SpeedoPOSerializer

public class SpeedoPOSerializer
extends java.lang.Object

Is an helper for the the serialization of the persistent objects.

Author:
S.Chassande-Barrioz

Constructor Summary
SpeedoPOSerializer()
           
 
Method Summary
static void readObject(java.io.ObjectInputStream in, PersistentObjectItf sp)
          Deserializes a persistent class (PersistentObjectItf) from an ObjectInputStream.
static void writeObject(java.io.ObjectOutputStream out, PersistentObjectItf sp, long[] fieldIds)
          Serializes a persistent class (PersistentObjectItf) into an ObjectOutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpeedoPOSerializer

public SpeedoPOSerializer()
Method Detail

writeObject

public static void writeObject(java.io.ObjectOutputStream out,
                               PersistentObjectItf sp,
                               long[] fieldIds)
                        throws java.io.IOException
Serializes a persistent class (PersistentObjectItf) into an ObjectOutputStream.

Parameters:
sp - is the speedo po to serialize
fieldIds - indicates which have to be serialized at least.
Throws:
java.io.IOException

readObject

public static void readObject(java.io.ObjectInputStream in,
                              PersistentObjectItf sp)
                       throws java.io.IOException,
                              java.lang.ClassNotFoundException
Deserializes a persistent class (PersistentObjectItf) from an ObjectInputStream.

Parameters:
sp - is the speedo po where attaches the content
Throws:
java.io.IOException
java.lang.ClassNotFoundException