org.inria.myriads.snoozenode.util
public final class SerializationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
deserializeObject(byte[] byteArray)
Deserialize object.
|
static byte[] |
serializeObject(Object obj)
Serialize object.
|
static String |
serializeObjectToJSON(Object data)
Serializes object to json.
|
public static byte[] serializeObject(Object obj) throws IOException
obj
- The object to serializeIOException
public static Object deserializeObject(byte[] byteArray) throws IOException, ClassNotFoundException
byteArray
- The byte arrayIOException
ClassNotFoundException
public static String serializeObjectToJSON(Object data) throws IOException
data
- The dataIOException
- ExceptionCopyright © 2013. All Rights Reserved.