com.alipay.remoting.serialization
Class HessianSerializer
java.lang.Object
com.alipay.remoting.serialization.HessianSerializer
- All Implemented Interfaces:
- Serializer
public class HessianSerializer
- extends Object
- implements Serializer
Hessian2 serializer.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HessianSerializer
public HessianSerializer()
serialize
public byte[] serialize(Object obj)
throws CodecException
- Description copied from interface:
Serializer
- Encode object into bytes.
- Specified by:
serialize in interface Serializer
- Returns:
-
- Throws:
CodecException- See Also:
Serializer.serialize(java.lang.Object)
deserialize
public <T> T deserialize(byte[] data,
String classOfT)
throws CodecException
- Description copied from interface:
Serializer
- Decode bytes into Object.
- Specified by:
deserialize in interface Serializer
- Returns:
-
- Throws:
CodecException- See Also:
Serializer.deserialize(byte[], java.lang.String)
Copyright © 2018. All rights reserved.