public class NativeJavaSerialization extends Object implements Serialization
e.g. <dubbo:protocol serialization="nativejava" />
| 构造器和说明 |
|---|
NativeJavaSerialization() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 greater than 20.
|
ObjectOutput |
serialize(URL url,
OutputStream output)
Get a serialization implementation instance
|
public byte getContentTypeId()
SerializationgetContentTypeId 在接口中 Serializationpublic String getContentType()
SerializationgetContentType 在接口中 Serializationpublic ObjectOutput serialize(URL url, OutputStream output) throws IOException
Serializationserialize 在接口中 Serializationurl - URL address for the remote serviceoutput - the underlying output streamIOExceptionpublic ObjectInput deserialize(URL url, InputStream input) throws IOException
Serializationdeserialize 在接口中 Serializationurl - URL address for the remote serviceinput - the underlying input streamIOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.