org.mortbay.http.nio

Class SocketChannelOutputStream

public class SocketChannelOutputStream extends OutputStream

Blocking output stream on non-blocking SocketChannel. Makes the assumption that writes will rarely need to block. All writes flush to the channel, and no additional buffering is done.

Version: $Revision: 1.4 $

Author: gregw

Constructor Summary
SocketChannelOutputStream(SocketChannel channel, int bufferSize)
Constructor.
Method Summary
voidclose()
voiddestroy()
voidflush()
voidwrite(int b)
voidwrite(byte[] buf, int offset, int length)
voidwrite(byte[] buf)

Constructor Detail

SocketChannelOutputStream

public SocketChannelOutputStream(SocketChannel channel, int bufferSize)
Constructor.

Method Detail

close

public void close()

destroy

public void destroy()

flush

public void flush()

write

public void write(int b)

write

public void write(byte[] buf, int offset, int length)

write

public void write(byte[] buf)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.