com.espertech.esper.util
Class SerializableObjectCopier

java.lang.Object
  extended by com.espertech.esper.util.SerializableObjectCopier

public class SerializableObjectCopier
extends java.lang.Object

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


Constructor Summary
SerializableObjectCopier()
           
 
Method Summary
static java.lang.Object copy(java.lang.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 java.lang.Object copy(java.lang.Object orig)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Deep copies the input object.

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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com