Class GzipDecompressingEntity
java.lang.Object
org.apache.http.entity.HttpEntityWrapper
org.apache.http.client.entity.GzipDecompressingEntity
- All Implemented Interfaces:
HttpEntity
HttpEntityWrapper for handling gzip
Content Coded responses.- Since:
- 4.1
-
Field Summary
Fields inherited from class HttpEntityWrapper
wrappedEntity -
Constructor Summary
ConstructorsConstructorDescriptionGzipDecompressingEntity(HttpEntity entity) Creates a newGzipDecompressingEntitywhich will wrap the specifiedHttpEntity. -
Method Summary
Methods inherited from class HttpEntityWrapper
consumeContent, getContentType, isChunked, isRepeatable, isStreaming
-
Constructor Details
-
GzipDecompressingEntity
Creates a newGzipDecompressingEntitywhich will wrap the specifiedHttpEntity.- Parameters:
entity- the non-nullHttpEntityto be wrapped
-
-
Method Details
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceHttpEntity- Overrides:
getContentEncodingin classHttpEntityWrapper
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceHttpEntity- Overrides:
getContentLengthin classHttpEntityWrapper
-
getContent
- Specified by:
getContentin interfaceHttpEntity- Overrides:
getContentin classHttpEntityWrapper- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceHttpEntity- Overrides:
writeToin classHttpEntityWrapper- Throws:
IOException
-