| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class provides some simple Serialization primitives
Method Summary | |
static Object | duplicate(Object in) Duplicates the given object using serialization - completely decouples both copies. |
static void | main(String[] args) |
static byte[] | toByteArray(Object o) Serialises the given object into a byte[] |
static Object | toObject(byte[] in) Reconstructs a serialised object from a byte[] to an Object |
Method Detail |
public static Object duplicate(Object in)
Duplicates the given object using serialization - completely decouples both copies.
WARNING: This is potentially an order of magnitude slower than manually cloning an object
public static void main(String[] args)
public static byte[] toByteArray(Object o)
public static Object toObject(byte[] in)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |