Class DecompressingEntity
- java.lang.Object
-
- org.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
- org.apache.hc.client5.http.entity.DecompressingEntity
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.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.HttpEntityWrapperDeprecated.Common base class for decompressingHttpEntityimplementations.
-
-
Constructor Summary
Constructors Constructor Description DecompressingEntity(org.apache.hc.core5.http.HttpEntity wrapped, InputStreamFactory inputStreamFactory)Deprecated.Constructs a newDecompressingEntity.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.io.InputStreamgetContent()Deprecated.java.lang.StringgetContentEncoding()Deprecated.longgetContentLength()Deprecated.voidwriteTo(java.io.OutputStream outStream)Deprecated.
-
-
-
Constructor Detail
-
DecompressingEntity
public DecompressingEntity(org.apache.hc.core5.http.HttpEntity wrapped, InputStreamFactory inputStreamFactory)Deprecated.Constructs a newDecompressingEntity.- Parameters:
wrapped- the non-nullHttpEntityto be wrappedinputStreamFactory- factory to create decompressing stream.
-
-
Method Detail
-
getContent
public java.io.InputStream getContent() throws java.io.IOExceptionDeprecated.- Specified by:
getContentin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
getContentin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOExceptionDeprecated.- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
writeToin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
java.io.IOException
-
getContentEncoding
public java.lang.String getContentEncoding()
Deprecated.- Specified by:
getContentEncodingin interfaceorg.apache.hc.core5.http.EntityDetails- Overrides:
getContentEncodingin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
getContentLength
public long getContentLength()
Deprecated.- Specified by:
getContentLengthin interfaceorg.apache.hc.core5.http.EntityDetails- Overrides:
getContentLengthin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
-