public interface ISerializer
Modifier and Type | Method and Description |
---|---|
<T> T |
deserialize(java.lang.Object serializedData,
java.lang.Class<T> clazz)
Deserializes data.
|
<T> java.lang.Object |
serialize(T dataToSerialize,
java.lang.Class<T> clazz)
Serializes data.
|
<T> java.lang.Object serialize(T dataToSerialize, java.lang.Class<T> clazz) throws java.lang.Exception
dataToSerialize
- Data to be serialized.clazz
- represents the serialized type.java.lang.Exception
- If the serialization fails.<T> T deserialize(java.lang.Object serializedData, java.lang.Class<T> clazz) throws java.lang.Exception
serializedData
- Data to be deserialized.java.lang.Exception
- If the deserialization fails.