C - the Object classpublic class SerializingCloner<C> extends Object
| Constructor and Description |
|---|
SerializingCloner() |
| Modifier and Type | Method and Description |
|---|---|
C |
deepClone(C obj)
Deep clone an object by serializing and unserializing the object in memory.
|
public C deepClone(C obj) throws IOException, ClassNotFoundException
obj - the objectIOException - if an IOException occur (mainly a NotSerializableException)ClassNotFoundException - if no class is found