org.inria.myriads.snoozenode.util
Class SerializationUtils

java.lang.Object
  extended by org.inria.myriads.snoozenode.util.SerializationUtils

public final class SerializationUtils
extends Object

Network utility.

Author:
Eugen Feller

Method Summary
static Object deserializeObject(byte[] byteArray)
          Deserialize object.
static byte[] serializeObject(Object obj)
          Serialize object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

serializeObject

public static byte[] serializeObject(Object obj)
                              throws IOException
Serialize object.

Parameters:
obj - The object to serialize
Returns:
The byte array
Throws:
IOException

deserializeObject

public static Object deserializeObject(byte[] byteArray)
                                throws IOException,
                                       ClassNotFoundException
Deserialize object.

Parameters:
byteArray - The byte array
Returns:
The return object
Throws:
IOException
ClassNotFoundException


Copyright © 2012. All Rights Reserved.