Class DecompressingEntity

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int BUFFER_SIZE
      Deprecated.
      Default buffer size.
      private java.io.InputStream content
      Deprecated.
      getContent() method must return the same InputStream instance when DecompressingEntity is wrapping a streaming entity.
      private InputStreamFactory inputStreamFactory
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.io.InputStream getContent()
      Deprecated.
       
      java.lang.String getContentEncoding()
      Deprecated.
       
      long getContentLength()
      Deprecated.
       
      private java.io.InputStream getDecompressingStream()
      Deprecated.
       
      void writeTo​(java.io.OutputStream outStream)
      Deprecated.
       
      • Methods inherited from class org.apache.hc.core5.http.io.entity.HttpEntityWrapper

        close, getContentType, getTrailerNames, getTrailers, isChunked, isRepeatable, isStreaming, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • BUFFER_SIZE

        private static final int BUFFER_SIZE
        Deprecated.
        Default buffer size.
        See Also:
        Constant Field Values
      • content

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

      • 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 Detail

      • getDecompressingStream

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

        public java.io.InputStream getContent()
                                       throws java.io.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:
        java.io.IOException
      • writeTo

        public void writeTo​(java.io.OutputStream outStream)
                     throws java.io.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:
        java.io.IOException
      • getContentEncoding

        public java.lang.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