|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.entity.AbstractHttpEntityHC4
org.apache.http.entity.BasicHttpEntityHC4
@NotThreadSafe public class BasicHttpEntityHC4
A generic streamed, non-repeatable entity that obtains its content
from an InputStream.
| Field Summary |
|---|
| Fields inherited from class org.apache.http.entity.AbstractHttpEntityHC4 |
|---|
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
BasicHttpEntityHC4()
Creates a new basic entity. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getContent()
Obtains the content, once only. |
long |
getContentLength()
|
boolean |
isRepeatable()
Tells that this entity is not repeatable. |
boolean |
isStreaming()
|
void |
setContent(java.io.InputStream instream)
Specifies the content. |
void |
setContentLength(long len)
Specifies the length of the content. |
void |
writeTo(java.io.OutputStream outstream)
|
| Methods inherited from class org.apache.http.entity.AbstractHttpEntityHC4 |
|---|
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicHttpEntityHC4()
| Method Detail |
|---|
public long getContentLength()
public java.io.InputStream getContent()
throws java.lang.IllegalStateException
setContent has been called
java.lang.IllegalStateException - if the content has not been providedpublic boolean isRepeatable()
falsepublic void setContentLength(long len)
len - the number of bytes in the content, or
a negative number to indicate an unknown lengthpublic void setContent(java.io.InputStream instream)
instream - the stream to return with the next call to
getContent
public void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
java.io.IOExceptionpublic boolean isStreaming()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||