| Modifier and Type | Method and Description |
|---|---|
ObjectInput |
deserialize(URL url,
InputStream input)
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 output)
Get a serialization implementation instance
|
byte getContentTypeId()
Constants and don't greater than ExchangeCodec.SERIALIZATION_MASK (31)
because dubbo protocol use 5 bits to record serialization ID in header.String getContentType()
@Adaptive ObjectOutput serialize(URL url, OutputStream output) throws IOException
url - URL address for the remote serviceoutput - the underlying output streamIOException@Adaptive ObjectInput deserialize(URL url, InputStream input) throws IOException
url - URL address for the remote serviceinput - the underlying input streamIOExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.