Class HttpClientUtil.GzipDecompressingEntity
- java.lang.Object
-
- org.apache.http.entity.HttpEntityWrapper
-
- org.apache.solr.client.solrj.impl.HttpClientUtil.GzipDecompressingEntity
-
- All Implemented Interfaces:
org.apache.http.HttpEntity
- Enclosing class:
- HttpClientUtil
protected static class HttpClientUtil.GzipDecompressingEntity extends org.apache.http.entity.HttpEntityWrapper
-
-
Constructor Summary
Constructors Constructor Description GzipDecompressingEntity(org.apache.http.HttpEntity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetContent()Return a InputStream of uncompressed data.longgetContentLength()
-
-
-
Method Detail
-
getContent
public InputStream getContent() throws IOException, IllegalStateException
Return a InputStream of uncompressed data. If there is an issue with the compression of the data, a null InputStream will be returned, and the underlying compressed InputStream will be closed.The same input stream will be returned if the underlying entity is not repeatable. If the underlying entity is repeatable, then a new input stream will be created.
- Specified by:
getContentin interfaceorg.apache.http.HttpEntity- Overrides:
getContentin classorg.apache.http.entity.HttpEntityWrapper- Throws:
IOExceptionIllegalStateException
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfaceorg.apache.http.HttpEntity- Overrides:
getContentLengthin classorg.apache.http.entity.HttpEntityWrapper
-
-