Java.Nio.Channels.Channels.NewWriter Method
Returns a writer that encodes characters with the specified encoder and sends the bytes to the specified channel.

Syntax

[Android.Runtime.Register("newWriter", "(Ljava/nio/channels/WritableByteChannel;Ljava/lang/String;)Ljava/io/Writer;", "")]
public static Java.IO.Writer NewWriter (IWritableByteChannel channel, string charsetName)

Parameters

channel
the Channel to be written to.
charsetName
the name of the charset.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.Charset.UnsupportedCharsetExceptionif the given charset name is not supported.

Remarks

Returns a writer that encodes characters with the specified encoder and sends the bytes to the specified channel. This method creates a writer with a buffer of default size.

[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