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)
SerializeCoder
initCoder
in interface SerializeCoder
public byte[] encode(Object object) throws IOException
SerializeCoder
encode
in interface SerializeCoder
IOException
public Object decode(byte[] bytes, Class<?> returnType) throws IOException
SerializeCoder
decode
in interface SerializeCoder
IOException
Copyright © 2020. All rights reserved.