public class Hessian2Serialization extends Object implements Serialization
e.g. <dubbo:protocol serialization="hessian2" />
| 构造器和说明 |
|---|
Hessian2Serialization() |
| 限定符和类型 | 方法和说明 |
|---|---|
ObjectInput |
deserialize(URL url,
InputStream is)
Get a deserialization implementation instance
|
String |
getContentType()
Get content type
|
byte |
getContentTypeId()
Get content type unique id, recommended that custom implementations use values different with
any value of
Constants and don't greater than ExchangeCodec.SERIALIZATION_MASK (31)
because dubbo protocol use 5 bits to record serialization ID in header. |
ObjectOutput |
serialize(URL url,
OutputStream out)
Get a serialization implementation instance
|
public byte getContentTypeId()
SerializationConstants and don't greater than ExchangeCodec.SERIALIZATION_MASK (31)
because dubbo protocol use 5 bits to record serialization ID in header.getContentTypeId 在接口中 Serializationpublic String getContentType()
SerializationgetContentType 在接口中 Serializationpublic ObjectOutput serialize(URL url, OutputStream out) throws IOException
Serializationserialize 在接口中 Serializationurl - URL address for the remote serviceout - the underlying output streamIOExceptionpublic ObjectInput deserialize(URL url, InputStream is) throws IOException
Serializationdeserialize 在接口中 Serializationurl - URL address for the remote serviceis - the underlying input streamIOExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.