public interface Serializer
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
deserialize(byte[] data,
String classOfT)
Decode bytes into Object.
|
byte[] |
serialize(Object obj)
Encode object into bytes.
|
byte[] serialize(Object obj) throws CodecException
obj - target objectCodecException<T> T deserialize(byte[] data,
String classOfT)
throws CodecException
data - serialized dataclassOfT - class of original dataCodecExceptionCopyright © 2019. All rights reserved.