com.alipay.remoting.serialization
Class HessianSerializer

java.lang.Object
  extended by com.alipay.remoting.serialization.HessianSerializer
All Implemented Interfaces:
Serializer

public class HessianSerializer
extends Object
implements Serializer

Hessian2 serializer.


Constructor Summary
HessianSerializer()
           
 
Method Summary
<T> T
deserialize(byte[] data, String classOfT)
          Decode bytes into Object.
 byte[] serialize(Object obj)
          Encode object into bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianSerializer

public HessianSerializer()
Method Detail

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.