public interface ContentEncoder
| Modifier and Type | Method and Description | 
|---|---|
| void | complete(List<? extends Header> trailers)Terminates the content stream. | 
| boolean | isCompleted()Returns  trueif 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(List<? extends Header> trailers) 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.