public final class SerdeUtils
extends java.lang.Object
Constructor and Description |
---|
SerdeUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
deserialize(java.lang.String name,
java.lang.String strObject)
Helper method to deserialize Java objects from Base64 strings
|
static <T> java.lang.String |
serialize(java.lang.String name,
T object)
Helper method to serialize Java objects as Base64 strings
|
public static <T> java.lang.String serialize(java.lang.String name, T object)
T
- type of the objectname
- name of the object (for error reporting)object
- object to be serializedpublic static <T> T deserialize(java.lang.String name, java.lang.String strObject)
T
- type of the objectname
- name of the object (for error reporting)strObject
- base64 string of the serialized object