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
Deprecated.
Common base class for decompressing
HttpEntity implementations.-
Constructor Summary
ConstructorsConstructorDescriptionDecompressingEntity(org.apache.hc.core5.http.HttpEntity wrapped, InputStreamFactory inputStreamFactory) Deprecated.Constructs a newDecompressingEntity. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.longDeprecated.voidwriteTo(OutputStream outStream) Deprecated.Methods inherited from class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
close, getContentType, getTrailerNames, getTrailers, isChunked, isRepeatable, isStreaming, toString
-
Constructor Details
-
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 Details
-
getContent
Deprecated.- Specified by:
getContentin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
getContentin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
IOException
-
writeTo
Deprecated.- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
writeToin classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper- Throws:
IOException
-
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
-
ContentCodecRegistry.decoder(org.apache.hc.client5.http.entity.compress.ContentCoding)