Class Overview
Static utilities for serialization and deserialization.
Summary
Public Methods |
static
Object
|
deserialize(byte[] bytes)
Deserialize the byte array into an object.
|
static
byte[]
|
serialize(Object object)
Serialize the given object to a byte array.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
SerializationUtils
()
Public Methods
public
static
Object
deserialize
(byte[] bytes)
Deserialize the byte array into an object.
Parameters
bytes
| a serialized object |
Returns
- the result of deserializing the bytes
public
static
byte[]
serialize
(Object object)
Serialize the given object to a byte array.
Parameters
object
| the object to serialize |
Returns
- an array of bytes representing the object in a portable fashion