public class ChunkEncoder extends AbstractContentEncoder
| 构造器和说明 |
|---|
ChunkEncoder(WritableByteChannel channel,
SessionOutputBuffer buffer,
BasicHttpTransportMetrics metrics) |
ChunkEncoder(WritableByteChannel channel,
SessionOutputBuffer buffer,
BasicHttpTransportMetrics metrics,
int chunkSizeHint) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
complete(List<? extends Header> trailers)
Terminates the content stream.
|
String |
toString() |
int |
write(ByteBuffer src)
Writes a portion of entity content to the underlying channel.
|
assertNotCompleted, buffer, channel, complete, flushToChannel, isCompleted, metrics, writeToBuffer, writeToChannel, writeToChannelpublic ChunkEncoder(WritableByteChannel channel, SessionOutputBuffer buffer, BasicHttpTransportMetrics metrics, int chunkSizeHint)
channel - underlying channel.buffer - session buffer.metrics - transport metrics.public ChunkEncoder(WritableByteChannel channel, SessionOutputBuffer buffer, BasicHttpTransportMetrics 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(List<? extends Header> trailers) throws IOException
ContentEncodercomplete 在接口中 ContentEncodercomplete 在类中 AbstractContentEncoderIOException - if I/O error occurs while writing contentCopyright © 2023. All rights reserved.