DeflateDecompressingEntity, GzipDecompressingEntitypublic class DecompressingEntity
extends org.apache.http.entity.HttpEntityWrapper
HttpEntity implementations.| Constructor | Description |
|---|---|
DecompressingEntity(org.apache.http.HttpEntity wrapped,
InputStreamFactory inputStreamFactory) |
Creates a new
DecompressingEntity. |
| Modifier and Type | Method | Description |
|---|---|---|
java.io.InputStream |
getContent() |
|
org.apache.http.Header |
getContentEncoding() |
|
long |
getContentLength() |
|
void |
writeTo(java.io.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 java.io.InputStream getContent()
throws java.io.IOException
getContent in class org.apache.http.entity.HttpEntityWrapperjava.io.IOExceptionpublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in class org.apache.http.entity.HttpEntityWrapperjava.io.IOExceptionpublic org.apache.http.Header getContentEncoding()
getContentEncoding in class org.apache.http.entity.HttpEntityWrapperpublic long getContentLength()
getContentLength in class org.apache.http.entity.HttpEntityWrapper