IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.event
Class CSSerializer

java.lang.Object
  extended bycom.ibm.btt.event.CSSerializer

public class CSSerializer
extends java.lang.Object

The CSSerializer class is based on the standard Java serialization. It gives the basic API to serialize or de-serialize any object in or from a byte array object.


Constructor Summary
CSSerializer()
           
 
Method Summary
 java.lang.Object deserialize(byte[] mySerializedObject)
          Deserializes an object.
 byte[] serialize(java.lang.Object myObject)
          Serializes an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSerializer

public CSSerializer()
Method Detail

deserialize

public java.lang.Object deserialize(byte[] mySerializedObject)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Deserializes an object.

Parameters:
mySerializedObject - byte[]
Returns:
Object
Throws:
java.io.IOException
java.lang.ClassNotFoundException

serialize

public byte[] serialize(java.lang.Object myObject)
                 throws java.io.IOException
Serializes an object.

Parameters:
myObject - Object
Returns:
byte[]
Throws:
IOException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005