IDataSerializer

public interface IDataSerializer

Serialization interface to provide object serialization and deserialization methods.

Methods

Method Description
serialize(Object data) Serialize method to format object to string representing.
deserialize(String source, Class type) Deserialize method to obtain required object from string.

serialize(Object data)

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 -

deserialize(String source, Class type)

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 -