groovyx.net.http
Class GZIPEncoding.GZIPDecompressingEntity
java.lang.Object
org.apache.http.entity.HttpEntityWrapper
groovyx.net.http.GZIPEncoding.GZIPDecompressingEntity
- All Implemented Interfaces:
- HttpEntity
- Enclosing class:
- GZIPEncoding
protected static class GZIPEncoding.GZIPDecompressingEntity
- extends HttpEntityWrapper
Entity used to interpret a GZIP-encoded response
- Author:
- Tom Nichols
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GZIPEncoding.GZIPDecompressingEntity
public GZIPEncoding.GZIPDecompressingEntity(HttpEntity entity)
getContent
public InputStream getContent()
throws IOException,
IllegalStateException
- returns a
GZIPInputStream
which wraps the original entity's
content stream
- Specified by:
getContent
in interface HttpEntity
- Overrides:
getContent
in class HttpEntityWrapper
- Throws:
IOException
IllegalStateException
- See Also:
HttpEntity.getContent()
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface HttpEntity
- Overrides:
getContentLength
in class HttpEntityWrapper
- Returns:
- -1
Copyright © 2008-2009. All Rights Reserved.