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(ByteBuffer src)
Writes a portion of entity content to the underlying channel.
|
int write(ByteBuffer src) throws IOException
src - The buffer from which content is to be retrievedIOException - if I/O error occurs while writing contentvoid complete()
throws IOException
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.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.