Class DefaultSerializationExceptionWrapper
java.lang.Object
org.apache.dubbo.common.serialize.DefaultSerializationExceptionWrapper
- All Implemented Interfaces:
Serialization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(URL url, InputStream input) Get a deserialization implementation instanceGet content typebyteGet content type unique id, recommended that custom implementations use values different with any value ofConstantsand don't greater than ExchangeCodec.SERIALIZATION_MASK (31) because dubbo protocol use 5 bits to record serialization ID in header.serialize(URL url, OutputStream output) Get a serialization implementation instance
-
Constructor Details
-
DefaultSerializationExceptionWrapper
-
-
Method Details
-
getContentTypeId
public byte getContentTypeId()Description copied from interface:SerializationGet content type unique id, recommended that custom implementations use values different with any value ofConstantsand don't greater than ExchangeCodec.SERIALIZATION_MASK (31) because dubbo protocol use 5 bits to record serialization ID in header.- Specified by:
getContentTypeIdin interfaceSerialization- Returns:
- content type id
-
getContentType
Description copied from interface:SerializationGet content type- Specified by:
getContentTypein interfaceSerialization- Returns:
- content type
-
serialize
Description copied from interface:SerializationGet a serialization implementation instance- Specified by:
serializein interfaceSerialization- Parameters:
url- URL address for the remote serviceoutput- the underlying output stream- Returns:
- serializer
- Throws:
IOException
-
deserialize
Description copied from interface:SerializationGet a deserialization implementation instance- Specified by:
deserializein interfaceSerialization- Parameters:
url- URL address for the remote serviceinput- the underlying input stream- Returns:
- deserializer
- Throws:
IOException
-