Interface ContentDecoder

All Known Implementing Classes:
GZIPContentDecoder

public interface ContentDecoder
ContentDecoder decodes content bytes of a response.
See Also:
  • Method Details

    • decode

      ByteBuffer decode(ByteBuffer buffer)

      Decodes the bytes in the given buffer and returns decoded bytes, if any.

      Parameters:
      buffer - the buffer containing encoded bytes
      Returns:
      a buffer containing decoded bytes, if any
    • release

      default void release(ByteBuffer decoded)

      Releases the ByteBuffer returned by decode(ByteBuffer).

      Parameters:
      decoded - the ByteBuffer returned by decode(ByteBuffer)