T - public class SerializationUtils<T extends Serializable> extends Object implements Serializable
| Constructor and Description |
|---|
SerializationUtils() |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] bytes)
De-serialize the byte array serialized version of an object into the Object itself.
|
byte[] |
serialize(T obj)
Serialize the provided object.
|
public byte[] serialize(T obj) throws IOException
obj - The Serializable object to be serialized.IOException - if the object cannot be serialized.public T deserialize(byte[] bytes) throws IOException
bytes - the byte array serialized version of the object.Exception - if the object cannot be de-serialized.IOExceptionCopyright © 2015 LSST. All rights reserved.