| java.lang.Object | ||
| ↳ | org.apache.http.entity.AbstractHttpEntity | |
| ↳ | org.apache.http.entity.BasicHttpEntity | |
This class is deprecated.
Please use openConnection() instead.
Please visit this webpage
for further details.
A generic streamed entity being received on a connection.
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.entity.AbstractHttpEntity
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new basic entity.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Does not consume anything.
| |||||||||||
Obtains the content, once only.
| |||||||||||
Tells that this entity is not repeatable.
| |||||||||||
Specifies the content.
| |||||||||||
Specifies the length of the content.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.entity.AbstractHttpEntity
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpEntity
| |||||||||||
Creates a new basic entity. The content is initially missing, the content length is set to a negative number.
Does not consume anything.
The default implementation does nothing if
isStreaming
returns false, and throws an exception
if it returns true.
This removes the burden of implementing
an empty method for non-streaming entities.
| IOException |
|---|
Obtains the content, once only.
setContent has been called| IllegalStateException | if the content has been obtained before, or has not yet been provided |
|---|
Tells that this entity is not repeatable.
false
Specifies the content.
| instream | the stream to return with the next call to
getContent
|
|---|
Specifies the length of the content.
| len | the number of bytes in the content, or a negative number to indicate an unknown length |
|---|