groovyx.net.http
Class DeflateEncoding.InflaterEntity

java.lang.Object
  extended by org.apache.http.entity.HttpEntityWrapper
      extended by groovyx.net.http.DeflateEncoding.InflaterEntity
All Implemented Interfaces:
org.apache.http.HttpEntity
Enclosing class:
DeflateEncoding

public static class DeflateEncoding.InflaterEntity
extends org.apache.http.entity.HttpEntityWrapper

Entity used to interpret a Deflate-encoded response

Author:
Tom Nichols

Field Summary
 
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity
 
Constructor Summary
DeflateEncoding.InflaterEntity(org.apache.http.HttpEntity entity)
           
 
Method Summary
 InputStream getContent()
          returns a InflaterInputStream which wraps the original entity's content stream
 long getContentLength()
           
 
Methods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContentEncoding, getContentType, isChunked, isRepeatable, isStreaming, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeflateEncoding.InflaterEntity

public DeflateEncoding.InflaterEntity(org.apache.http.HttpEntity entity)
Method Detail

getContent

public InputStream getContent()
                       throws IOException,
                              IllegalStateException
returns a InflaterInputStream which wraps the original entity's content stream

Specified by:
getContent in interface org.apache.http.HttpEntity
Overrides:
getContent in class org.apache.http.entity.HttpEntityWrapper
Throws:
IOException
IllegalStateException
See Also:
HttpEntity.getContent()

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface org.apache.http.HttpEntity
Overrides:
getContentLength in class org.apache.http.entity.HttpEntityWrapper
Returns:
-1


Copyright © 2008-2012. All Rights Reserved.