com.alibaba.dubbo.common.serialize.support.hessian
Class Hessian2Serialization

java.lang.Object
  extended by com.alibaba.dubbo.common.serialize.support.hessian.Hessian2Serialization
All Implemented Interfaces:
Serialization

public class Hessian2Serialization
extends Object
implements Serialization

Author:
ding.lid

Field Summary
static byte ID
           
 
Constructor Summary
Hessian2Serialization()
           
 
Method Summary
 ObjectInput deserialize(URL url, InputStream is)
          create deserializer
 String getContentType()
          get content type
 byte getContentTypeId()
          get content type id
 ObjectOutput serialize(URL url, OutputStream out)
          create serializer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final byte ID
See Also:
Constant Field Values
Constructor Detail

Hessian2Serialization

public Hessian2Serialization()
Method Detail

getContentTypeId

public byte getContentTypeId()
Description copied from interface: Serialization
get content type id

Specified by:
getContentTypeId in interface Serialization
Returns:
content type id

getContentType

public String getContentType()
Description copied from interface: Serialization
get content type

Specified by:
getContentType in interface Serialization
Returns:
content type

serialize

public ObjectOutput serialize(URL url,
                              OutputStream out)
                       throws IOException
Description copied from interface: Serialization
create serializer

Specified by:
serialize in interface Serialization
Returns:
serializer
Throws:
IOException

deserialize

public ObjectInput deserialize(URL url,
                               InputStream is)
                        throws IOException
Description copied from interface: Serialization
create deserializer

Specified by:
deserialize in interface Serialization
Returns:
deserializer
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.