public class NettyOutputStream extends OutputStream
Constructor and Description |
---|
NettyOutputStream(io.netty.channel.ChannelHandlerContext ctx,
int bufferSize,
io.netty.handler.codec.http.HttpResponse headers,
io.netty.channel.ChannelFutureListener closeListener) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(byte[] src,
int off,
int len) |
void |
write(byte[] src,
int off,
int len,
io.netty.channel.ChannelFutureListener callback) |
void |
write(int b) |
write
public NettyOutputStream(io.netty.channel.ChannelHandlerContext ctx, int bufferSize, io.netty.handler.codec.http.HttpResponse headers, io.netty.channel.ChannelFutureListener closeListener)
public void write(int b)
write
in class OutputStream
public void write(byte[] src, int off, int len)
write
in class OutputStream
public void write(byte[] src, int off, int len, io.netty.channel.ChannelFutureListener callback)
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
Copyright © 2019. All rights reserved.