public interface ContentEncoder
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Terminates the content stream.
|
boolean |
isCompleted()
Returns
true if the entity has been transferred in its
entirety. |
int |
write(java.nio.ByteBuffer src)
Writes a portion of entity content to the underlying channel.
|
int write(java.nio.ByteBuffer src) throws java.io.IOException
src - The buffer from which content is to be retrievedjava.io.IOException - if I/O error occurs while writing contentvoid complete()
throws java.io.IOException
java.io.IOException - if I/O error occurs while writing contentboolean isCompleted()
true if the entity has been transferred in its
entirety.true if all the content has been produced,
false otherwise.