ISerializer Interface
public interface ISerializer
Serializes and deserializes items from strings into their types
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| default T |
deserializeObject(JsonElement jsonElement, Class<T> clazz)
Deserialize an object from the input Json |
| abstract T |
deserializeObject(JsonElement jsonElement, Class<T> clazz, Map<String,List<String>> responseHeaders)
Deserialize an object from the input Json |
| default T |
deserializeObject(InputStream inputStream, Class<T> clazz)
Deserialize an object from the input stream |
| abstract T |
deserializeObject(InputStream inputStream, Class<T> clazz, Map<String,List<String>> responseHeaders)
Deserialize an object from the input stream |
| default T |
deserializeObject(String inputString, Class<T> clazz)
Deserialize an object from the input string |
| abstract T |
deserializeObject(String inputString, Class<T> clazz, Map<String,List<String>> responseHeaders)
Deserialize an object from the input string |
| abstract java.lang.String |
serializeObject(T serializableObject)
Serializes an object into a string |
Method Details
deserializeObject
public default T
Deserialize an object from the input JsonElement
Parameters:
JsonElement that stores the representation of the item
Class of the item to be deserialized
Returns:
deserializeObject
public abstract T
Deserialize an object from the input JsonElement
Parameters:
JsonElement that stores the representation of the item
Class of the item to be deserialized
Returns:
deserializeObject
public default T
Deserialize an object from the input stream
Parameters:
Class of the item to be deserialized
Returns:
deserializeObject
public abstract T
Deserialize an object from the input stream
Parameters:
Class of the item to be deserialized
Returns:
deserializeObject
public default T
Deserialize an object from the input string
Parameters:
Class of the item to be deserialized
Returns:
deserializeObject
public abstract T
Deserialize an object from the input string
Parameters:
Class of the item to be deserialized
Returns:
serializeObject
public abstract String
Serializes an object into a string
Parameters:
Returns: