Class DefaultSerializationExceptionWrapper

java.lang.Object
org.apache.dubbo.common.serialize.DefaultSerializationExceptionWrapper
All Implemented Interfaces:
Serialization

public class DefaultSerializationExceptionWrapper extends Object implements Serialization
  • Constructor Details

    • DefaultSerializationExceptionWrapper

      public DefaultSerializationExceptionWrapper(Serialization serialization)
  • Method Details

    • getContentTypeId

      public byte getContentTypeId()
      Description copied from interface: Serialization
      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.
      Specified by:
      getContentTypeId in interface Serialization
      Returns:
      content type id
    • getContentType

      public String getContentType()
      Description copied from interface: Serialization
      Get content type
      Specified by:
      getContentType in interface Serialization
      Returns:
      content type
    • serialize

      public ObjectOutput serialize(URL url, OutputStream output) throws IOException
      Description copied from interface: Serialization
      Get a serialization implementation instance
      Specified by:
      serialize in interface Serialization
      Parameters:
      url - URL address for the remote service
      output - the underlying output stream
      Returns:
      serializer
      Throws:
      IOException
    • deserialize

      public ObjectInput deserialize(URL url, InputStream input) throws IOException
      Description copied from interface: Serialization
      Get a deserialization implementation instance
      Specified by:
      deserialize in interface Serialization
      Parameters:
      url - URL address for the remote service
      input - the underlying input stream
      Returns:
      deserializer
      Throws:
      IOException