public class GzipCompressingEntity
extends org.apache.http.entity.HttpEntityWrapper
writing
.Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
GZIP_CODEC |
Constructor and Description |
---|
GzipCompressingEntity(org.apache.http.HttpEntity entity) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
boolean |
isChunked() |
void |
writeTo(java.io.OutputStream outStream) |
private static final java.lang.String GZIP_CODEC
public GzipCompressingEntity(org.apache.http.HttpEntity entity)
public org.apache.http.Header getContentEncoding()
getContentEncoding
in interface org.apache.http.HttpEntity
getContentEncoding
in class org.apache.http.entity.HttpEntityWrapper
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
getContentLength
in class org.apache.http.entity.HttpEntityWrapper
public boolean isChunked()
isChunked
in interface org.apache.http.HttpEntity
isChunked
in class org.apache.http.entity.HttpEntityWrapper
public java.io.InputStream getContent() throws java.io.IOException
getContent
in interface org.apache.http.HttpEntity
getContent
in class org.apache.http.entity.HttpEntityWrapper
java.io.IOException
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException
writeTo
in interface org.apache.http.HttpEntity
writeTo
in class org.apache.http.entity.HttpEntityWrapper
java.io.IOException