|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.identityconnectors.framework.common.serializer.SerializerUtil
public final class SerializerUtil
Bag of utilities for serialization
Method Summary | |
---|---|
static Object |
cloneObject(Object object)
Clones the given object by serializing it to bytes and then deserializing it. |
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 byte[] |
serializeBinaryObject(Object object)
Serializes the given object to bytes |
static String |
serializeXmlObject(Object object,
boolean includeHeader)
Serializes the given object to xml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] serializeBinaryObject(Object object)
object
- The object to serialize
for a list of supported types
public static Object deserializeBinaryObject(byte[] bytes)
bytes
- The bytes to deserialize
for a list of supported types
public 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 types
public static Object deserializeXmlObject(String str, boolean validate)
str
- The xml to deserializevalidate
- True if we are to validate the xml
for a list of supported types
public static Object cloneObject(Object object)
object
- The object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |