Package org.apache.http.client.entity
Class GzipDecompressingEntity
- java.lang.Object
-
- org.apache.http.entity.HttpEntityWrapper
-
- org.apache.http.client.entity.GzipDecompressingEntity
-
- All Implemented Interfaces:
HttpEntity
public class GzipDecompressingEntity extends HttpEntityWrapper
HttpEntityWrapperfor handling gzip Content Coded responses.- Since:
- 4.1
-
-
Field Summary
-
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity
-
-
Constructor Summary
Constructors Constructor Description GzipDecompressingEntity(HttpEntity entity)Creates a newGzipDecompressingEntitywhich will wrap the specifiedHttpEntity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetContent()HeadergetContentEncoding()longgetContentLength()voidwriteTo(java.io.OutputStream outstream)-
Methods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContentType, isChunked, isRepeatable, isStreaming
-
-
-
-
Constructor Detail
-
GzipDecompressingEntity
public GzipDecompressingEntity(HttpEntity entity)
Creates a newGzipDecompressingEntitywhich will wrap the specifiedHttpEntity.- Parameters:
entity- the non-nullHttpEntityto be wrapped
-
-
Method Detail
-
getContentEncoding
public Header getContentEncoding()
- Specified by:
getContentEncodingin interfaceHttpEntity- Overrides:
getContentEncodingin classHttpEntityWrapper
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceHttpEntity- Overrides:
getContentLengthin 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
-
-