| org.apache.http.nio.ContentEncoder
All known Subclasses: org.apache.http.impl.nio.codecs.AbstractContentEncoder,
ContentEncoder | public interface ContentEncoder (Code) | | Abstract HTTP content encoder. HTTP content encoders can be used
to apply the required coding transformation and write entity
content to the underlying channel in small chunks.
author: Oleg Kalnichevski |
Method Summary | |
void | complete() Terminates the content stream. | boolean | isCompleted() Returns true if the entity has been transferred in its
entirety. | int | write(ByteBuffer src) Writes a portion of entity content to the underlying channel. |
complete | void complete() throws IOException(Code) | | Terminates the content stream.
throws: IOException - if I/O error occurs while writing content |
isCompleted | boolean isCompleted()(Code) | | Returns true if the entity has been transferred in its
entirety.
true if all the content has been produced, false otherwise. |
write | int write(ByteBuffer src) throws IOException(Code) | | Writes a portion of entity content to the underlying channel.
Parameters: src - The buffer from which content is to be retrieved The number of bytes read, possibly zero throws: IOException - if I/O error occurs while writing content |
|
|