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
|
static java.lang.String |
toJson(java.lang.String name,
java.lang.Object object)
Helper method to serialize Java objects as json 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 objectpublic static java.lang.String toJson(java.lang.String name, java.lang.Object object)
name
- name of object used for loggingobject
- object to be serialized