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:
org.apache.http.HttpEntity
public class GzipCompressingEntity
extends org.apache.http.entity.HttpEntityWrapper
Wrapping entity that compresses content when
writing.- Since:
- 4.0
-
Field Summary
FieldsFields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.HeaderlongbooleanvoidwriteTo(OutputStream outStream) Methods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContentType, isRepeatable, isStreaming
-
Field Details
-
GZIP_CODEC
- See Also:
-
-
Constructor Details
-
GzipCompressingEntity
public GzipCompressingEntity(org.apache.http.HttpEntity entity)
-
-
Method Details
-
getContentEncoding
public org.apache.http.Header getContentEncoding()- Specified by:
getContentEncodingin interfaceorg.apache.http.HttpEntity- Overrides:
getContentEncodingin classorg.apache.http.entity.HttpEntityWrapper
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity- Overrides:
getContentLengthin classorg.apache.http.entity.HttpEntityWrapper
-
isChunked
public boolean isChunked()- Specified by:
isChunkedin interfaceorg.apache.http.HttpEntity- Overrides:
isChunkedin classorg.apache.http.entity.HttpEntityWrapper
-
getContent
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Overrides:
getContentin classorg.apache.http.entity.HttpEntityWrapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.apache.http.HttpEntity- Overrides:
writeToin classorg.apache.http.entity.HttpEntityWrapper- Throws:
IOException
-