public class NettyTransportOutputStream extends OutputStream
Constructor and Description |
---|
NettyTransportOutputStream(org.jboss.netty.channel.Channel channel,
int chunkSize)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the stream causing the last chunk to be send on the channel (includes flushing)
|
void |
flush() |
org.jboss.netty.channel.ChannelFuture |
getChannelFuture()
Get the Netty channel future for the last message sent.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
write
public NettyTransportOutputStream(org.jboss.netty.channel.Channel channel, int chunkSize)
channel
- The Netty channel to send the message onchunkSize
- The chunk size (bytes) for chunked encoding (must be > 0)public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public org.jboss.netty.channel.ChannelFuture getChannelFuture()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.