public class GzippedEntity
extends java.lang.Object
implements org.apache.http.HttpEntity
HttpEntity object.
This sets the content type as "application/x-gzip" and the encoding as "x-gzip, gzip"| Constructor and Description |
|---|
GzippedEntity(org.apache.http.HttpEntity e) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeContent() |
java.util.zip.GZIPInputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
public GzippedEntity(org.apache.http.HttpEntity e)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic org.apache.http.Header getContentType()
getContentType in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentEncoding()
getContentEncoding in interface org.apache.http.HttpEntitypublic void consumeContent()
throws java.io.IOException
consumeContent in interface org.apache.http.HttpEntityjava.io.IOExceptionpublic java.util.zip.GZIPInputStream getContent()
throws java.io.IOException,
java.lang.IllegalStateException
getContent in interface org.apache.http.HttpEntityjava.io.IOExceptionjava.lang.IllegalStateExceptionpublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic boolean isChunked()
isChunked in interface org.apache.http.HttpEntitypublic boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntitypublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntityjava.io.IOException