IDataSerializer
Leave feedback
On this page
public interface IDataSerializer
Serialization interface to provide object serialization and deserialization methods.
| Method | Description |
|---|---|
| serialize(Object data) | Serialize method to format object to string representing. |
| Deserialize method to obtain required object from string. |
public abstract String serialize(Object data)
Serialize method to format object to string representing.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| data | java.lang.Object | Source object to serialize |
Returns: java.lang.String -
public abstract T <T>deserialize(String source, Class<T> type)
Deserialize method to obtain required object from string.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| source | java.lang.String | Source serialized string that contains object |
T : Type of return object |
| type | java.lang.Class
Returns: T -
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.