public final class SerializationUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
static <T> T | 
clone(T o)
Performs a deep copy of the given object via serialization. 
 | 
static Object | 
fromBase64(String str)
Creates an object from a base64 encoded byte array. 
 | 
static Object | 
fromBytes(byte[] bytes)
Creates an object from a byte array. 
 | 
static String | 
toBase64(Object object)
Creates a string consisting of the serialized form of the given object. 
 | 
static byte[] | 
toBytes(Object object)
Creates a byte array consisting of the serialized form of the given object. 
 | 
public static <T> T clone(T o)
T - the type of the objecto - the object to clonepublic static String toBase64(Object object)
object - the object to serializepublic static byte[] toBytes(Object object)
object - the object to serializepublic static Object fromBytes(byte[] bytes)
bytes - byte array consisting of the serialized form of a java object.RuntimeException - if errors occur during deserializationpublic static Object fromBase64(String str)
str - string consisting of the base64-encoded serialized form of a java object.RuntimeException - if errors occur during deserializationCopyright © 2016 Actian Corporation. All rights reserved.