org.apache.http.nio.entity.ConsumingNHttpEntity |
Known Indirect Subclasses
|
Class Overview
A non-blocking HttpEntity that allows content to be streamed from a
ContentDecoder
.
Summary
Public Methods |
abstract
void
|
consumeContent(ContentDecoder decoder, IOControl ioctrl)
Notification that content is available to be read from the decoder.
|
abstract
void
|
finish()
Notification that any resources allocated for reading can be released.
|
[Expand]
Inherited Methods |
From interface
org.apache.http.HttpEntity
abstract
void
|
consumeContent()
|
abstract
InputStream
|
getContent()
|
abstract
Header
|
getContentEncoding()
|
abstract
long
|
getContentLength()
|
abstract
Header
|
getContentType()
|
abstract
boolean
|
isChunked()
|
abstract
boolean
|
isRepeatable()
|
abstract
boolean
|
isStreaming()
|
abstract
void
|
writeTo(OutputStream arg0)
|
|
Public Methods
public
abstract
void
consumeContent
(ContentDecoder decoder, IOControl ioctrl)
Notification that content is available to be read from the decoder.
IOControl
instance passed as a parameter to the method can be
used to suspend input events if the entity is temporarily unable to
allocate more storage to accommodate all incoming content.
Parameters
decoder
| content decoder. |
ioctrl
| I/O control of the underlying connection.
|
public
abstract
void
finish
()
Notification that any resources allocated for reading can be released.