net.esper.util
Class SerializableObjectCopier

java.lang.Object
  extended by net.esper.util.SerializableObjectCopier

public class SerializableObjectCopier
extends Object

Utility class for copying serializable objects via object input and output streams.


Constructor Summary
SerializableObjectCopier()
           
 
Method Summary
static Object copy(Object orig)
          Deep copies the input object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableObjectCopier

public SerializableObjectCopier()
Method Detail

copy

public static Object copy(Object orig)
                   throws IOException,
                          ClassNotFoundException
Deep copies the input object.

Parameters:
orig - is the object to be copied, must be serializable
Returns:
copied object
Throws:
IOException - if the streams returned an exception
ClassNotFoundException - if the de-serialize fails