public interface NettyOutputStream extends Flushable, Closeable
ServletOutputStream.flush()| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close http.
|
void |
flush()
batch send packet.
|
io.netty.channel.ChannelProgressivePromise |
write(io.netty.buffer.ByteBuf httpBody)
direct write to tcp outputStream
|
io.netty.channel.ChannelProgressivePromise |
write(ByteBuffer httpBody)
direct write to tcp outputStream.
|
io.netty.channel.ChannelProgressivePromise |
write(io.netty.handler.stream.ChunkedInput httpBody)
use netty batch write
|
io.netty.channel.ChannelProgressivePromise |
write(File httpBody)
use netty zero copy
|
io.netty.channel.ChannelProgressivePromise |
write(FileChannel httpBody,
long position,
long count)
use netty zero copy
|
io.netty.channel.ChannelProgressivePromise |
write(File httpBody,
long position,
long count)
use netty zero copy
|
void flush()
throws IOException
flush 在接口中 FlushableIOException - if closevoid close()
close 在接口中 AutoCloseableclose 在接口中 Closeableio.netty.channel.ChannelProgressivePromise write(ByteBuffer httpBody) throws IOException
httpBody - jdk ByteBuffer httpBodyIOException - if closeMappedByteBuffer,
ByteBufferio.netty.channel.ChannelProgressivePromise write(io.netty.buffer.ByteBuf httpBody)
throws IOException
httpBody - netty ByteBuf httpBodyIOException - if closeChunkedFile,
ChunkedNioStream,
ChunkedNioFile,
ChunkedStreamio.netty.channel.ChannelProgressivePromise write(io.netty.handler.stream.ChunkedInput httpBody)
throws IOException
httpBody - ChunkedInput httpBodyIOException - if closeChunkedFile,
ChunkedNioStream,
ChunkedNioFile,
ChunkedStreamio.netty.channel.ChannelProgressivePromise write(FileChannel httpBody, long position, long count) throws IOException
httpBody - FileChannel httpBodycount - countposition - positionChannelProgressivePromise.addListener(GenericFutureListener) }IOException - if closeGenericProgressiveFutureListenerio.netty.channel.ChannelProgressivePromise write(File httpBody, long position, long count) throws IOException
httpBody - File httpBodycount - countposition - positionChannelProgressivePromise.addListener(GenericFutureListener) }IOException - if closeGenericProgressiveFutureListenerio.netty.channel.ChannelProgressivePromise write(File httpBody) throws IOException
httpBody - File httpBodyChannelProgressivePromise.addListener(GenericFutureListener) }IOException - if closeGenericProgressiveFutureListenerCopyright © 2021. All rights reserved.