public class DecompressingEntity
extends org.apache.http.entity.HttpEntityWrapper
HttpEntity implementations.| Constructor and Description |
|---|
DecompressingEntity(org.apache.http.HttpEntity wrapped,
InputStreamFactory inputStreamFactory)
Creates a new
DecompressingEntity. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
void |
writeTo(OutputStream outStream) |
public DecompressingEntity(org.apache.http.HttpEntity wrapped,
InputStreamFactory inputStreamFactory)
DecompressingEntity.wrapped - the non-null HttpEntity to be wrappedinputStreamFactory - factory to create decompressing stream.public InputStream getContent() throws IOException
getContent in interface org.apache.http.HttpEntitygetContent in class org.apache.http.entity.HttpEntityWrapperIOExceptionpublic void writeTo(OutputStream outStream) throws IOException
writeTo in interface org.apache.http.HttpEntitywriteTo in class org.apache.http.entity.HttpEntityWrapperIOExceptionpublic org.apache.http.Header getContentEncoding()
getContentEncoding in interface org.apache.http.HttpEntitygetContentEncoding in class org.apache.http.entity.HttpEntityWrapperpublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitygetContentLength in class org.apache.http.entity.HttpEntityWrapperCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.