content
getContent()
method must return the same InputStream
instance when DecompressingEntity is wrapping a streaming entity.Closeable
, AutoCloseable
, org.apache.hc.core5.http.EntityDetails
, org.apache.hc.core5.http.HttpEntity
BrotliDecompressingEntity
, DeflateDecompressingEntity
, GzipDecompressingEntity
HttpEntity
implementations.private static final int
private InputStream
getContent()
method must return the same InputStream
instance when DecompressingEntity is wrapping a streaming entity.private final InputStreamFactory
DecompressingEntity(org.apache.hc.core5.http.HttpEntity wrapped,
InputStreamFactory inputStreamFactory)
DecompressingEntity
.close, getContentType, getTrailerNames, getTrailers, isChunked, isRepeatable, isStreaming, toString
getContent()
method must return the same InputStream
instance when DecompressingEntity is wrapping a streaming entity.DecompressingEntity
.wrapped
- the non-null HttpEntity
to be wrappedinputStreamFactory
- factory to create decompressing stream.IOException
getContent
in interface org.apache.hc.core5.http.HttpEntity
getContent
in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
IOException
writeTo
in interface org.apache.hc.core5.http.HttpEntity
writeTo
in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
IOException
getContentEncoding
in interface org.apache.hc.core5.http.EntityDetails
getContentEncoding
in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
getContentLength
in interface org.apache.hc.core5.http.EntityDetails
getContentLength
in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper