public interface ContentDecoder
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCompleted()
Returns
true if the entity has been received in its
entirety. |
int |
read(java.nio.ByteBuffer dst)
Reads a portion of content from the underlying channel
|
int read(java.nio.ByteBuffer dst) throws java.io.IOException
dst - The buffer into which entity content is to be transferredjava.io.IOException - if I/O error occurs while reading contentboolean isCompleted()
true if the entity has been received in its
entirety.true if all the content has been consumed,
false otherwise.