public class ChunkedInputStreamEntity
extends org.apache.http.entity.BasicHttpEntity
ChunkedInputStreamEntity.ReleasableInputStreamEntity
and sends its content using chunked
encoding.Modifier and Type | Class and Description |
---|---|
static class |
ChunkedInputStreamEntity.ReleasableInputStreamEntity
A releaseable HTTP entity that can control its inner inputstream's
auto-close functionality on/off, and it will try to close its inner
inputstream by default when the inputstream reaches EOF.
|
Constructor and Description |
---|
ChunkedInputStreamEntity(ServiceClient.Request request) |
Modifier and Type | Method and Description |
---|---|
boolean |
isChunked() |
boolean |
isRepeatable() |
void |
writeTo(OutputStream output) |
getContent, getContentLength, isStreaming, setContent, setContentLength
public ChunkedInputStreamEntity(ServiceClient.Request request)
public boolean isChunked()
isChunked
in interface org.apache.http.HttpEntity
isChunked
in class org.apache.http.entity.AbstractHttpEntity
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
isRepeatable
in class org.apache.http.entity.BasicHttpEntity
public void writeTo(OutputStream output) throws IOException
writeTo
in interface org.apache.http.HttpEntity
writeTo
in class org.apache.http.entity.BasicHttpEntity
IOException
Copyright © 2021. All Rights Reserved.