| org.apache.http.nio.ContentDecoder
All known Subclasses: org.apache.http.impl.nio.codecs.AbstractContentDecoder, org.apache.http.mockup.MockupDecoder,
ContentDecoder | public interface ContentDecoder (Code) | | Abstract HTTP content decoder. HTTP content decoders can be used
to read entity content from the underlying channel in small
chunks and apply the required coding transformation.
author: Oleg Kalnichevski |
Method Summary | |
boolean | isCompleted() Returns true if the entity has been received in its
entirety. | int | read(ByteBuffer dst) |
isCompleted | boolean isCompleted()(Code) | | Returns true if the entity has been received in its
entirety.
true if all the content has been consumed, false otherwise. |
read | int read(ByteBuffer dst) throws IOException(Code) | | Reads a portion of content from the underlying channel
Parameters: dst - The buffer into which entity content is to be transferred The number of bytes read, possibly zero, or -1 if the channel has reached end-of-stream throws: IOException - if I/O error occurs while reading content |
|
|