p2p.simulator.utils
Class ObjectSerializer

java.lang.Object
  extended by p2p.simulator.utils.ObjectSerializer

public class ObjectSerializer
extends java.lang.Object


Constructor Summary
ObjectSerializer()
           
 
Method Summary
protected static java.lang.Object deserialize(byte[] bytes)
           
protected static byte[] serialize(java.io.Serializable obj)
           
static java.lang.Object serializeAndDeserialize(java.io.Serializable obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectSerializer

public ObjectSerializer()
Method Detail

serializeAndDeserialize

public static java.lang.Object serializeAndDeserialize(java.io.Serializable obj)

serialize

protected static byte[] serialize(java.io.Serializable obj)
                           throws java.io.IOException
Throws:
java.io.IOException

deserialize

protected static java.lang.Object deserialize(byte[] bytes)
                                       throws java.io.IOException,
                                              java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException