public static InputStream newInputStream ( ReadableByteChannel ch ) { checkNotNull ( ch , "ch" ) ; return new sun . nio . ch . ChannelInputStream ( ch ) ; }
Constructs a stream that reads bytes from the given channel .