public class ChunkDecoder extends AbstractContentDecoder
completed| Constructor and Description | 
|---|
| ChunkDecoder(ReadableByteChannel channel,
            SessionInputBuffer buffer,
            BasicHttpTransportMetrics metrics) | 
| ChunkDecoder(ReadableByteChannel channel,
            SessionInputBuffer buffer,
            Http1Config http1Config,
            BasicHttpTransportMetrics metrics) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<? extends Header> | getTrailers()Returns content trailers if available | 
| int | read(ByteBuffer dst)Reads a portion of content from the underlying channel | 
| String | toString() | 
buffer, channel, fillBufferFromChannel, isCompleted, metrics, readFromChannel, readFromChannel, setCompleted, setCompletedpublic ChunkDecoder(ReadableByteChannel channel, SessionInputBuffer buffer, Http1Config http1Config, BasicHttpTransportMetrics metrics)
public ChunkDecoder(ReadableByteChannel channel, SessionInputBuffer buffer, BasicHttpTransportMetrics metrics)
public int read(ByteBuffer dst) throws IOException
ContentDecoderdst - The buffer into which entity content is to be transferredIOException - if I/O error occurs while reading contentpublic List<? extends Header> getTrailers()
ContentDecodergetTrailers in interface ContentDecodergetTrailers in class AbstractContentDecoderCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.