public abstract class SerializationUtils
extends java.lang.Object
| Constructor and Description |
|---|
SerializationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
deserialize(byte[] aBytes)
Deserializes an object from a byte array.
|
static byte[] |
serialize(java.io.Serializable aObject)
Serializes an object to a byte array.
|
public static byte[] serialize(java.io.Serializable aObject)
throws java.io.IOException
aObject - object to serializeaObject encoded as a byte array. If aObject is
null, null is returned.java.io.IOException - if an I/O error occurspublic static java.lang.Object deserialize(byte[] aBytes)
throws java.io.IOException,
java.lang.ClassNotFoundException
aBytes - byte array to read fromObject deserialized from aBytes. If
aBytes is null, null is returned.java.io.IOException - if an I/O error occursjava.lang.ClassNotFoundException - if a required class could not be foundCopyright © 2013. All Rights Reserved.