java.lang.Object | ||
↳ | org.apache.http.entity.AbstractHttpEntity | |
↳ | org.apache.http.nio.entity.NByteArrayEntity |
A simple self contained, repeatable non-blocking entity that retrieves its content from a byte array.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
buffer | |||||||||||
content |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.entity.AbstractHttpEntity
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Notification that any resources allocated for writing can be released.
| |||||||||||
Notification that content should be written to the encoder.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.entity.AbstractHttpEntity
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpEntity
| |||||||||||
From interface
org.apache.http.nio.entity.ProducingNHttpEntity
|
Notification that any resources allocated for writing can be released.
Notification that content should be written to the encoder.
IOControl
instance passed as a parameter to the method can be
used to suspend output events if the entity is temporarily unable to
produce more content.
When all content is finished, this MUST call complete()
.
Failure to do so could result in the entity never being written.
encoder | content encoder. |
---|---|
ioctrl | I/O control of the underlying connection. |
IOException |
---|