@NotThreadSafe public class ChunkEncoder extends AbstractContentEncoder
buffer, channel, completed, metrics| Constructor and Description |
|---|
ChunkEncoder(WritableByteChannel channel,
SessionOutputBuffer buffer,
HttpTransportMetricsImpl metrics) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Terminates the content stream.
|
String |
toString() |
int |
write(ByteBuffer src)
Writes a portion of entity content to the underlying channel.
|
assertNotCompleted, isCompletedpublic ChunkEncoder(WritableByteChannel channel, SessionOutputBuffer buffer, HttpTransportMetricsImpl metrics)
public int write(ByteBuffer src) throws IOException
ContentEncodersrc - The buffer from which content is to be retrievedIOException - if I/O error occurs while writing contentpublic void complete()
throws IOException
ContentEncodercomplete in interface ContentEncodercomplete in class AbstractContentEncoderIOException - if I/O error occurs while writing contentCopyright © 2005–2013 The Apache Software Foundation. All rights reserved.