|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evelopers.unimod.util.DeepCopyHelper
Object deep copy helper. Utilizes serialization approach.
Do not use in critical application parts due to low performance.
Constructor Summary | |
DeepCopyHelper()
|
Method Summary | |
static java.lang.Object |
deepCopy(java.io.Serializable o)
Creates deep copy of given object. |
static java.lang.Object |
fromByteArray(byte[] buf)
Deserialize object from given byte array |
static byte[] |
toByteArray(java.io.Serializable o)
Transform given object into byte array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeepCopyHelper()
Method Detail |
public static byte[] toByteArray(java.io.Serializable o) throws java.io.IOException
o
-
java.io.IOException
public static java.lang.Object fromByteArray(byte[] buf) throws java.io.IOException, java.lang.ClassNotFoundException
buf
-
java.io.IOException
java.lang.ClassNotFoundException
public static java.lang.Object deepCopy(java.io.Serializable o) throws java.lang.ClassNotFoundException, java.io.IOException
o
-
java.lang.ClassNotFoundException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |