net.esper.util
Class SerializableObjectCopier
java.lang.Object
net.esper.util.SerializableObjectCopier
public class SerializableObjectCopier
- extends Object
Utility class for copying serializable objects via object input and output streams.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializableObjectCopier
public SerializableObjectCopier()
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