public interface ContentDecoder
| Modifier and Type | Method and Description | 
|---|---|
| List<? extends Header> | getTrailers()Returns content trailers if available | 
| boolean | isCompleted()Returns  trueif the entity has been received in its
 entirety. | 
| int | read(ByteBuffer dst)Reads a portion of content from the underlying channel | 
int read(ByteBuffer dst) throws IOException
dst - The buffer into which entity content is to be transferredIOException - 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.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.