public class JsonSerializeCoder extends Object implements SerializeCoder
| Constructor and Description |
|---|
JsonSerializeCoder() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(byte[] bytes,
Class<?> returnType)
decode byte[] to Object
|
byte[] |
encode(Object object)
Encode Object to byte[]
|
void |
initCoder(Environment environment)
初始化
|
public void initCoder(Environment environment)
SerializeCoderinitCoder in interface SerializeCoderpublic byte[] encode(Object object) throws IOException
SerializeCoderencode in interface SerializeCoderIOExceptionpublic Object decode(byte[] bytes, Class<?> returnType) throws IOException
SerializeCoderdecode in interface SerializeCoderIOExceptionCopyright © 2020. All rights reserved.