Package org.apache.http.client.entity
Class DecompressingEntity
java.lang.Object
org.apache.http.entity.HttpEntityWrapper
org.apache.http.client.entity.DecompressingEntity
- All Implemented Interfaces:
org.apache.http.HttpEntity
- Direct Known Subclasses:
DeflateDecompressingEntity,GzipDecompressingEntity
public class DecompressingEntity
extends org.apache.http.entity.HttpEntityWrapper
Common base class for decompressing
HttpEntity implementations.- Since:
- 4.4
-
Field Summary
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity -
Constructor Summary
ConstructorsConstructorDescriptionDecompressingEntity(org.apache.http.HttpEntity wrapped, InputStreamFactory inputStreamFactory) Creates a newDecompressingEntity. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.HeaderlongvoidwriteTo(OutputStream outStream) Methods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContentType, isChunked, isRepeatable, isStreaming
-
Constructor Details
-
DecompressingEntity
public DecompressingEntity(org.apache.http.HttpEntity wrapped, InputStreamFactory inputStreamFactory) Creates a newDecompressingEntity.- Parameters:
wrapped- the non-nullHttpEntityto be wrappedinputStreamFactory- factory to create decompressing stream.
-
-
Method Details
-
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
-
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
-