ContentDecoderpublic class ChunkDecoder extends AbstractContentDecoder
buffer, channel, completed, metrics| Constructor | Description |
|---|---|
ChunkDecoder(java.nio.channels.ReadableByteChannel channel,
SessionInputBuffer buffer,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.impl.io.HttpTransportMetricsImpl metrics) |
|
ChunkDecoder(java.nio.channels.ReadableByteChannel channel,
SessionInputBuffer buffer,
org.apache.http.impl.io.HttpTransportMetricsImpl metrics) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.http.Header[] |
getFooters() |
|
int |
read(java.nio.ByteBuffer dst) |
Reads a portion of content from the underlying channel
|
java.lang.String |
toString() |
fillBufferFromChannel, isCompleted, readFromChannel, readFromChannelpublic ChunkDecoder(java.nio.channels.ReadableByteChannel channel,
SessionInputBuffer buffer,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.impl.io.HttpTransportMetricsImpl metrics)
public ChunkDecoder(java.nio.channels.ReadableByteChannel channel,
SessionInputBuffer buffer,
org.apache.http.impl.io.HttpTransportMetricsImpl metrics)
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
ContentDecoderdst - The buffer into which entity content is to be transferredjava.io.IOException - if I/O error occurs while reading contentpublic org.apache.http.Header[] getFooters()
public java.lang.String toString()
toString in class java.lang.Object