public static InputStream newInputStream (AsynchronousByteChannel ch)

Constructs a stream that reads bytes from the given channel.

The stream will not be buffered, and it will not support the mark or reset methods. 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 from which bytes will be read

Returns:  A new input stream

Since:  1.7