@NotThreadSafe public class ChunkDecoder extends AbstractContentDecoder
buffer, channel, completed, metrics
Constructor and Description |
---|
ChunkDecoder(ReadableByteChannel channel,
SessionInputBuffer buffer,
HttpTransportMetricsImpl metrics) |
ChunkDecoder(ReadableByteChannel channel,
SessionInputBuffer buffer,
MessageConstraints constraints,
HttpTransportMetricsImpl metrics) |
Modifier and Type | Method and Description |
---|---|
Header[] |
getFooters() |
int |
read(ByteBuffer dst)
Reads a portion of content from the underlying channel
|
String |
toString() |
fillBufferFromChannel, isCompleted, readFromChannel, readFromChannel
public ChunkDecoder(ReadableByteChannel channel, SessionInputBuffer buffer, MessageConstraints constraints, HttpTransportMetricsImpl metrics)
public ChunkDecoder(ReadableByteChannel channel, SessionInputBuffer buffer, HttpTransportMetricsImpl 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 Header[] getFooters()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.