public interface Serializer
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(InputStream inputStream,
Class<T> type)
Deserializes an InputStream into an Object of a Well-known type.
|
<T> T |
deserialize(String payload,
Class<T> type)
Deserializes a String into an Object of a Well-known type.
|
<T> String |
serialize(T object)
Serializes an Object into a string.
|
<T> void |
serialize(T object,
OutputStream outputStream)
Serializes an Object to an OutputStream.
|
<T> String serialize(T object)
T - Type of the Object to serializeobject - Target to serialize<T> void serialize(T object,
OutputStream outputStream)
T - Type of the Object to serializeobject - Object to serialize.outputStream - Stream to serialize to.<T> T deserialize(String payload, Class<T> type)
T - Type of the Object to deserializepayload - String to deserializetype - Target type of deserialization<T> T deserialize(InputStream inputStream, Class<T> type)
T - Type of the Object to deserializeinputStream - Stream to deserialize fromtype - Target type of deserializationCopyright © 2019. All rights reserved.