|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.util.Serializer
Utility class used to serialize Java objects.
Method Summary | |
static Object |
deepCopy(Object oldObj)
Return a deep copy of an object |
static byte[] |
toByteArray(Object obj)
Serialize the input Java object and return its byte stream representation. |
static Object |
toObject(byte[] buf)
Get a Java Object from its input byte stream representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Object toObject(byte[] buf) throws Exception
buf
- the Java object byte stream representation
Exception
- Description of the Exceptionpublic static byte[] toByteArray(Object obj) throws Exception
obj
- the input Java object to serialize
Exception
- Description of the Exceptionpublic static Object deepCopy(Object oldObj) throws Exception
oldObj
- the object to copy.
Exception
- Description of the Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |