BasicAsyncRequestProducer
or BasicAsyncResponseProducer@Deprecated public interface ConsumingNHttpEntity extends HttpEntity
HttpEntity that allows content to be streamed from a
ContentDecoder.| 限定符和类型 | 方法和说明 |
|---|---|
void |
consumeContent(ContentDecoder decoder,
IOControl ioctrl)
已过时。
Notification that content is available to be read from the decoder.
|
void |
finish()
已过时。
Notification that any resources tlb for reading can be released.
|
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTovoid consumeContent(ContentDecoder decoder, IOControl ioctrl) throws java.io.IOException
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.decoder - content decoder.ioctrl - I/O control of the underlying connection.java.io.IOExceptionvoid finish()
throws java.io.IOException
java.io.IOException