public class DecompressingEntity
extends org.apache.hc.core5.http.io.entity.HttpEntityWrapper
HttpEntity
implementations.Constructor and Description |
---|
DecompressingEntity(org.apache.hc.core5.http.HttpEntity wrapped,
InputStreamFactory inputStreamFactory)
Constructs a new
DecompressingEntity . |
Modifier and Type | Method and Description |
---|---|
InputStream |
getContent() |
String |
getContentEncoding() |
long |
getContentLength() |
void |
writeTo(OutputStream outStream) |
public DecompressingEntity(org.apache.hc.core5.http.HttpEntity wrapped, InputStreamFactory inputStreamFactory)
DecompressingEntity
.wrapped
- the non-null HttpEntity
to be wrappedinputStreamFactory
- factory to create decompressing stream.public InputStream getContent() throws IOException
getContent
in interface org.apache.hc.core5.http.HttpEntity
getContent
in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
IOException
public void writeTo(OutputStream outStream) throws IOException
writeTo
in interface org.apache.hc.core5.http.HttpEntity
writeTo
in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
IOException
public String getContentEncoding()
getContentEncoding
in interface org.apache.hc.core5.http.EntityDetails
getContentEncoding
in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
public long getContentLength()
getContentLength
in interface org.apache.hc.core5.http.EntityDetails
getContentLength
in class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.