public final class Serializer extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
deserialize(Object data,
boolean zipped)
deserializes DBBinary/byte[] to object
|
static byte[] |
serialize(Object o,
boolean zip)
serializes object to byte[]
|
public static byte[] serialize(Object o, boolean zip) throws IOException
o - the object to serializezip - true if the data should be compressedIOException - thrown when an error is encountered writing the datapublic static Object deserialize(Object data, boolean zipped) throws IOException, ClassNotFoundException
data - the data to readzipped - true if the data is compressedIOException - thrown when an error is encountered reading the dataClassNotFoundException - thrown if the Class definition can not be found