Class DecompressingEntity

java.lang.Object
org.apache.hc.core5.http.io.entity.HttpEntityWrapper
org.apache.hc.client5.http.entity.DecompressingEntity
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity
Direct Known Subclasses:
BrotliDecompressingEntity, DeflateDecompressingEntity, GzipDecompressingEntity

@Deprecated public class DecompressingEntity extends org.apache.hc.core5.http.io.entity.HttpEntityWrapper
Common base class for decompressing HttpEntity implementations.
  • Field Details

    • BUFFER_SIZE

      private static final int BUFFER_SIZE
      Deprecated.
      Default buffer size.
      See Also:
    • inputStreamFactory

      private final InputStreamFactory inputStreamFactory
      Deprecated.
    • content

      private InputStream content
      Deprecated.
      getContent() method must return the same InputStream instance when DecompressingEntity is wrapping a streaming entity.
  • Constructor Details

    • DecompressingEntity

      public DecompressingEntity(org.apache.hc.core5.http.HttpEntity wrapped, InputStreamFactory inputStreamFactory)
      Deprecated.
      Constructs a new DecompressingEntity.
      Parameters:
      wrapped - the non-null HttpEntity to be wrapped
      inputStreamFactory - factory to create decompressing stream.
  • Method Details

    • getDecompressingStream

      private InputStream getDecompressingStream() throws IOException
      Deprecated.
      Throws:
      IOException
    • getContent

      public InputStream getContent() throws IOException
      Deprecated.
      Specified by:
      getContent in interface org.apache.hc.core5.http.HttpEntity
      Overrides:
      getContent in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
      Throws:
      IOException
    • writeTo

      public void writeTo(OutputStream outStream) throws IOException
      Deprecated.
      Specified by:
      writeTo in interface org.apache.hc.core5.http.HttpEntity
      Overrides:
      writeTo in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
      Throws:
      IOException
    • getContentEncoding

      public String getContentEncoding()
      Deprecated.
      Specified by:
      getContentEncoding in interface org.apache.hc.core5.http.EntityDetails
      Overrides:
      getContentEncoding in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
    • getContentLength

      public long getContentLength()
      Deprecated.
      Specified by:
      getContentLength in interface org.apache.hc.core5.http.EntityDetails
      Overrides:
      getContentLength in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper