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 - CodecException<T> T deserialize(byte[] data,
String classOfT)
throws CodecException
data - classOfT - CodecExceptionCopyright © 2018. All rights reserved.