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 whenwriting
.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description GzipCompressingEntity(org.apache.http.HttpEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getContent()
org.apache.http.Header
getContentEncoding()
long
getContentLength()
boolean
isChunked()
void
writeTo(java.io.OutputStream outStream)
-
-
-
Method Detail
-
getContentEncoding
public org.apache.http.Header getContentEncoding()
- Specified by:
getContentEncoding
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContentEncoding
in classorg.apache.http.entity.HttpEntityWrapper
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContentLength
in classorg.apache.http.entity.HttpEntityWrapper
-
isChunked
public boolean isChunked()
- Specified by:
isChunked
in interfaceorg.apache.http.HttpEntity
- Overrides:
isChunked
in classorg.apache.http.entity.HttpEntityWrapper
-
getContent
public java.io.InputStream getContent() throws java.io.IOException
- Specified by:
getContent
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContent
in classorg.apache.http.entity.HttpEntityWrapper
- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException
- Specified by:
writeTo
in interfaceorg.apache.http.HttpEntity
- Overrides:
writeTo
in classorg.apache.http.entity.HttpEntityWrapper
- Throws:
java.io.IOException
-
-