Package org.apache.http.client.entity
Class GzipCompressingEntity
- java.lang.Object
-
- org.apache.http.entity.HttpEntityWrapper
-
- org.apache.http.client.entity.GzipCompressingEntity
-
- All Implemented Interfaces:
HttpEntity
public class GzipCompressingEntity extends HttpEntityWrapper
Wrapping entity that compresses content whenwriting.- Since:
- 4.0
-
-
Field Summary
-
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity
-
-
Constructor Summary
Constructors Constructor Description GzipCompressingEntity(HttpEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetContent()HeadergetContentEncoding()longgetContentLength()booleanisChunked()voidwriteTo(java.io.OutputStream outstream)-
Methods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContentType, isRepeatable, isStreaming
-
-
-
-
Constructor Detail
-
GzipCompressingEntity
public GzipCompressingEntity(HttpEntity entity)
-
-
Method Detail
-
getContentEncoding
public Header getContentEncoding()
- Specified by:
getContentEncodingin interfaceHttpEntity- Overrides:
getContentEncodingin classHttpEntityWrapper
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceHttpEntity- Overrides:
getContentLengthin classHttpEntityWrapper
-
isChunked
public boolean isChunked()
- Specified by:
isChunkedin interfaceHttpEntity- Overrides:
isChunkedin classHttpEntityWrapper
-
getContent
public java.io.InputStream getContent() throws java.io.IOException- Specified by:
getContentin interfaceHttpEntity- Overrides:
getContentin classHttpEntityWrapper- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outstream) throws java.io.IOException- Specified by:
writeToin interfaceHttpEntity- Overrides:
writeToin classHttpEntityWrapper- Throws:
java.io.IOException
-
-