Channels.NewWritableChannel(Stream) Method

Definition

Constructs a channel that writes bytes to the given stream.

[Android.Runtime.Register("newChannel", "(Ljava/io/OutputStream;)Ljava/nio/channels/WritableByteChannel;", "")]
public static Java.Nio.Channels.IWritableByteChannel? NewWritableChannel (System.IO.Stream? out);
[<Android.Runtime.Register("newChannel", "(Ljava/io/OutputStream;)Ljava/nio/channels/WritableByteChannel;", "")>]
static member NewWritableChannel : System.IO.Stream -> Java.Nio.Channels.IWritableByteChannel

Parameters

out
Stream

The stream to which bytes are to be written

Returns

A new writable byte channel

Attributes

Remarks

Constructs a channel that writes bytes to the given stream.

The resulting channel will not be buffered; it will simply redirect its I/O operations to the given stream. Closing the channel will in turn cause the stream to be closed.

Java documentation for java.nio.channels.Channels.newChannel(java.io.OutputStream).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to