public class PartiallyRepeatableHttpEntity
extends org.apache.http.entity.HttpEntityWrapper
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
| Constructor and Description |
|---|
PartiallyRepeatableHttpEntity(org.apache.http.HttpEntity entity) |
PartiallyRepeatableHttpEntity(org.apache.http.HttpEntity entity,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeContent() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(OutputStream stream) |
public static final int DEFAULT_BUFFER_SIZE
public PartiallyRepeatableHttpEntity(org.apache.http.HttpEntity entity,
int bufferSize)
throws IOException
IOExceptionpublic PartiallyRepeatableHttpEntity(org.apache.http.HttpEntity entity)
throws IOException
IOExceptionpublic boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntityisRepeatable in class org.apache.http.entity.HttpEntityWrapperpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntityisStreaming in class org.apache.http.entity.HttpEntityWrapperpublic boolean isChunked()
isChunked in interface org.apache.http.HttpEntityisChunked in class org.apache.http.entity.HttpEntityWrapperpublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitygetContentLength in class org.apache.http.entity.HttpEntityWrapperpublic InputStream getContent() throws IOException
getContent in interface org.apache.http.HttpEntitygetContent in class org.apache.http.entity.HttpEntityWrapperIOExceptionpublic void writeTo(OutputStream stream) throws IOException
writeTo in interface org.apache.http.HttpEntitywriteTo in class org.apache.http.entity.HttpEntityWrapperIOExceptionpublic void consumeContent()
throws IOException
consumeContent in interface org.apache.http.HttpEntityconsumeContent in class org.apache.http.entity.HttpEntityWrapperIOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.