public final class Serializations extends Object
Modifier and Type | Method and Description |
---|---|
static Serializable |
deserialize(byte[] buffer)
This method is used to de-serialized a table BLOB field to its original object form.
|
static byte[] |
serialize(Serializable theObject)
This method is used to serialized an object saved into a table BLOB field.
|
public static byte[] serialize(Serializable theObject) throws IOException
theObject
- the object to be serializedIOException
public static Serializable deserialize(byte[] buffer) throws IOException, ClassNotFoundException
buffer
- the byte array save a BLOBIOException
ClassNotFoundException
Copyright © 2017 The Apache Software Foundation. All rights reserved.