Class NativeJavaSerialization
java.lang.Object
org.apache.dubbo.common.serialize.nativejava.NativeJavaSerialization
- All Implemented Interfaces:
Serialization
Native java serialization implementation
e.g. <dubbo:protocol serialization="nativejava" />
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(org.apache.dubbo.common.URL url, InputStream input) byte
serialize
(org.apache.dubbo.common.URL url, OutputStream output)
-
Constructor Details
-
NativeJavaSerialization
public NativeJavaSerialization()
-
-
Method Details
-
getContentTypeId
public byte getContentTypeId()- Specified by:
getContentTypeId
in interfaceSerialization
-
getContentType
- Specified by:
getContentType
in interfaceSerialization
-
serialize
public ObjectOutput serialize(org.apache.dubbo.common.URL url, OutputStream output) throws IOException - Specified by:
serialize
in interfaceSerialization
- Throws:
IOException
-
deserialize
public ObjectInput deserialize(org.apache.dubbo.common.URL url, InputStream input) throws IOException - Specified by:
deserialize
in interfaceSerialization
- Throws:
IOException
-