public static OutputStream newOutputStream (AsynchronousByteChannel ch)

Constructs a stream that writes bytes to the given channel.

The stream will not be buffered. The stream will be safe for access by multiple concurrent threads. Closing the stream will in turn cause the channel to be closed.

ch     The channel to which bytes will be written

Returns:  A new output stream

Since:  1.7