public class DecompressingEntity extends HttpEntityWrapper
HttpEntity implementations.wrappedEntity| Constructor and Description |
|---|
DecompressingEntity(HttpEntity wrapped,
InputStreamFactory inputStreamFactory)
Creates a new
DecompressingEntity. |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
Header |
getContentEncoding() |
long |
getContentLength() |
void |
writeTo(OutputStream outstream) |
consumeContent, getContentType, isChunked, isRepeatable, isStreamingpublic DecompressingEntity(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 HttpEntitygetContent in class HttpEntityWrapperIOExceptionpublic void writeTo(OutputStream outstream) throws IOException
writeTo in interface HttpEntitywriteTo in class HttpEntityWrapperIOExceptionpublic Header getContentEncoding()
getContentEncoding in interface HttpEntitygetContentEncoding in class HttpEntityWrapperpublic long getContentLength()
getContentLength in interface HttpEntitygetContentLength in class HttpEntityWrapperCopyright © 1999–2015 The Apache Software Foundation. All rights reserved.