com.github.ignition.support.http.gzip
Class GzipInflatingEntity

java.lang.Object
  extended by org.apache.http.entity.HttpEntityWrapper
      extended by com.github.ignition.support.http.gzip.GzipInflatingEntity
All Implemented Interfaces:
org.apache.http.HttpEntity

public class GzipInflatingEntity
extends org.apache.http.entity.HttpEntityWrapper

Simple HttpEntityWrapper that inflates the wrapped HttpEntity by passing it through GZIPInputStream.


Field Summary
 
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity
 
Constructor Summary
GzipInflatingEntity(org.apache.http.HttpEntity wrapped)
           
 
Method Summary
 InputStream getContent()
           
 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

GzipInflatingEntity

public GzipInflatingEntity(org.apache.http.HttpEntity wrapped)
Method Detail

getContent

public InputStream getContent()
                       throws IOException
Specified by:
getContent in interface org.apache.http.HttpEntity
Overrides:
getContent in class org.apache.http.entity.HttpEntityWrapper
Throws:
IOException

getContentLength

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


Copyright © 2012. All Rights Reserved.