Java.Nio.Channels.Channels.NewInputStream Method
Returns an input stream on the given channel.

Syntax

[Android.Runtime.Register("newInputStream", "(Ljava/nio/channels/ReadableByteChannel;)Ljava/io/InputStream;", "")]
public static System.IO.Stream NewInputStream (IReadableByteChannel channel)

Parameters

channel
the channel to be wrapped by an InputStream.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns an input stream on the given channel. The resulting stream has the following properties:

  • If the stream is closed, then the underlying channel is closed as well.
  • It is thread safe.
  • It throws an Java.Nio.Channels.IllegalBlockingModeException if the channel is in non-blocking mode and read is called.
  • Neither mark nor reset is supported.
  • It is not buffered.

[Android Documentation]

Requirements

Namespace: Java.Nio.Channels
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1