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, setCompleted
public ChunkDecoder(ReadableByteChannel channel, SessionInputBuffer buffer, Http1Config http1Config, BasicHttpTransportMetrics metrics)
public ChunkDecoder(ReadableByteChannel channel, SessionInputBuffer buffer, BasicHttpTransportMetrics metrics)
public int read(ByteBuffer dst) throws IOException
ContentDecoder
dst
- The buffer into which entity content is to be transferredIOException
- if I/O error occurs while reading contentpublic List<? extends Header> getTrailers()
ContentDecoder
getTrailers
in interface ContentDecoder
getTrailers
in class AbstractContentDecoder
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.