public interface DaprObjectSerializer
Modifier and Type | Method and Description |
---|---|
<T> T |
deserialize(byte[] data,
Class<T> clazz)
Deserializes the given String into a object.
|
byte[] |
serialize(Object o)
Serializes the given object as a String to be saved.
|
byte[] serialize(Object o) throws IOException
o
- Object to be serialized.IOException
- If cannot serialize.<T> T deserialize(byte[] data, Class<T> clazz) throws IOException
T
- Type of object to be deserialized.data
- Data to be deserialized.clazz
- Class of object to be deserialized.IOException
- If cannot deserialize object.Copyright © 2020. All rights reserved.