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) |
writepublic 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 OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic org.jboss.netty.channel.ChannelFuture getChannelFuture()
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.