java.lang.Object
org.apache.http.entity.HttpEntityWrapper
org.apache.http.contrib.compress.GzipCompressingEntity
- All Implemented Interfaces:
- org.apache.http.HttpEntity
- public class GzipCompressingEntity
- extends org.apache.http.entity.HttpEntityWrapper
+ * Wrapping entity that compresses content when writing 55 .
+ *
- Since:
- 4.0
- Version:
- $Revision: 379761 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GZIP_CODEC
private static final java.lang.String GZIP_CODEC
- See Also:
- Constant Field Values
GzipCompressingEntity
public GzipCompressingEntity(org.apache.http.HttpEntity entity)
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Description copied from interface:
org.apache.http.HttpEntity
- Obtains the Content-Encoding header, if known.
This is the header that should be used when sending the entity,
or the one that was received with the entity.
Wrapping entities that modify the content encoding should
adjust this header accordingly.
getContentLength
public long getContentLength()
- Description copied from interface:
org.apache.http.HttpEntity
- Tells the length of the content, if known.
isChunked
public boolean isChunked()
- Description copied from interface:
org.apache.http.HttpEntity
- Tells about chunked encoding for this entity.
The primary purpose of this method is to indicate whether
chunked encoding should be used when the entity is sent.
For entities that are received, it can also indicate whether
the entity was received with chunked encoding.
The behavior of wrapping entities is implementation dependent,
but should respect the primary purpose.
writeTo
public void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
- Description copied from interface:
org.apache.http.HttpEntity
- Writes the entity content to the output stream.