Class GZIPContentDecoder

  • All Implemented Interfaces:
    Destroyable
    Direct Known Subclasses:
    GZIPContentDecoder

    @Deprecated(since="2021-05-27")
    public class GZIPContentDecoder
    extends java.lang.Object
    implements Destroyable
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.

    Decoder for the "gzip" content encoding.

    This decoder inflates gzip compressed data, and has been optimized for async usage with minimal data copies.

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer acquire​(int capacity)
      Deprecated.
       
      java.nio.ByteBuffer decode​(java.nio.ByteBuffer compressed)
      Deprecated.
      Inflates compressed data from a buffer.
      void destroy()
      Deprecated.
       
      boolean isFinished()
      Deprecated.
       
      void release​(java.nio.ByteBuffer buffer)
      Deprecated.
      Releases an allocated buffer.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GZIPContentDecoder

        public GZIPContentDecoder()
        Deprecated.
      • GZIPContentDecoder

        public GZIPContentDecoder​(int bufferSize)
        Deprecated.
      • GZIPContentDecoder

        public GZIPContentDecoder​(ByteBufferPool pool,
                                  int bufferSize)
        Deprecated.
    • Method Detail

      • decode

        public java.nio.ByteBuffer decode​(java.nio.ByteBuffer compressed)
        Deprecated.

        Inflates compressed data from a buffer.

        The buffers returned by this method should be released via release(ByteBuffer).

        This method may fully consume the input buffer, but return only a chunk of the inflated bytes, to allow applications to consume the inflated chunk before performing further inflation, applying backpressure. In this case, this method should be invoked again with the same input buffer (even if it's already fully consumed) and that will produce another chunk of inflated bytes. Termination happens when the input buffer is fully consumed, and the returned buffer is empty.

        See decodedChunk(ByteBuffer) to perform inflating in a non-blocking way that allows to apply backpressure.

        Parameters:
        compressed - the buffer containing compressed data.
        Returns:
        a buffer containing inflated data.
      • destroy

        public void destroy()
        Deprecated.
        Specified by:
        destroy in interface Destroyable
      • isFinished

        public boolean isFinished()
        Deprecated.
      • acquire

        public java.nio.ByteBuffer acquire​(int capacity)
        Deprecated.
        Parameters:
        capacity - capacity of the ByteBuffer to acquire
        Returns:
        a heap buffer of the configured capacity either from the pool or freshly allocated.