public final class SerializerUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
cloneObject(Object object)
Clones the given object by serializing it to bytes and then deserializing it.
|
static Object |
deserializeBase64Object(String encdata)
Deserializes the given object from Base64 String.
|
static Object |
deserializeBinaryObject(byte[] bytes)
Deserializes the given object from bytes.
|
static Object |
deserializeXmlObject(String str,
boolean validate)
Deserializes the given object from xml.
|
static String |
serializeBase64Object(Object object)
Serializes the given object to Base64 string.
|
static byte[] |
serializeBinaryObject(Object object)
Serializes the given object to bytes.
|
static String |
serializeXmlObject(Object object,
boolean includeHeader)
Serializes the given object to xml.
|
public static byte[] serializeBinaryObject(Object object)
object - The object to serializefor a list of supported typespublic static Object deserializeBinaryObject(byte[] bytes)
bytes - The bytes to deserializefor a list of supported typespublic static String serializeBase64Object(Object object)
object - The object to serializefor a list of supported typespublic static Object deserializeBase64Object(String encdata)
encdata - The string to deserializefor a list of supported typespublic static String serializeXmlObject(Object object, boolean includeHeader)
object - The object to serializeincludeHeader - True if we are to include the xml header.for a list of supported typespublic static Object deserializeXmlObject(String str, boolean validate)
str - The xml to deserializevalidate - True if we are to validate the xmlfor a list of supported typesCopyright © 2022. All rights reserved.