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) byteserialize(org.apache.dubbo.common.URL url, OutputStream output)
-
Constructor Details
-
NativeJavaSerialization
public NativeJavaSerialization()
-
-
Method Details
-
getContentTypeId
public byte getContentTypeId()- Specified by:
getContentTypeIdin interfaceSerialization
-
getContentType
- Specified by:
getContentTypein interfaceSerialization
-
serialize
public ObjectOutput serialize(org.apache.dubbo.common.URL url, OutputStream output) throws IOException - Specified by:
serializein interfaceSerialization- Throws:
IOException
-
deserialize
public ObjectInput deserialize(org.apache.dubbo.common.URL url, InputStream input) throws IOException - Specified by:
deserializein interfaceSerialization- Throws:
IOException
-