@NotThreadSafe public class BufferedHttpEntityHC4 extends HttpEntityWrapperHC4
wrappedEntity| Constructor and Description |
|---|
BufferedHttpEntityHC4(org.apache.http.HttpEntity entity)
Creates a new buffered entity wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContent() |
long |
getContentLength() |
boolean |
isChunked()
Tells that this entity does not have to be chunked.
|
boolean |
isRepeatable()
Tells that this entity is repeatable.
|
boolean |
isStreaming() |
void |
writeTo(java.io.OutputStream outstream) |
consumeContent, getContentEncoding, getContentTypepublic BufferedHttpEntityHC4(org.apache.http.HttpEntity entity)
throws java.io.IOException
entity - the entity to wrap, not nulljava.lang.IllegalArgumentException - if wrapped is nulljava.io.IOExceptionpublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitygetContentLength in class HttpEntityWrapperHC4public java.io.InputStream getContent()
throws java.io.IOException
getContent in interface org.apache.http.HttpEntitygetContent in class HttpEntityWrapperHC4java.io.IOExceptionpublic boolean isChunked()
isChunked in interface org.apache.http.HttpEntityisChunked in class HttpEntityWrapperHC4falsepublic boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntityisRepeatable in class HttpEntityWrapperHC4truepublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntitywriteTo in class HttpEntityWrapperHC4java.io.IOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntityisStreaming in class HttpEntityWrapperHC4Copyright © 1999-2015 The Apache Software Foundation. All rights reserved.