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 InputStream
getContent()
Return a InputStream of uncompressed data.long
getContentLength()
-
-
-
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:
getContent
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContent
in classorg.apache.http.entity.HttpEntityWrapper
- Throws:
IOException
IllegalStateException
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfaceorg.apache.http.HttpEntity
- Overrides:
getContentLength
in classorg.apache.http.entity.HttpEntityWrapper
-
-