次の方法で共有


Charset.ForName(String) Method

Definition

Returns a charset object for the named charset.

[Android.Runtime.Register("forName", "(Ljava/lang/String;)Ljava/nio/charset/Charset;", "")]
public static Java.Nio.Charset.Charset? ForName (string? charsetName);
[<Android.Runtime.Register("forName", "(Ljava/lang/String;)Ljava/nio/charset/Charset;", "")>]
static member ForName : string -> Java.Nio.Charset.Charset

Parameters

charsetName
String

The name of the requested charset; may be either a canonical name or an alias

Returns

A charset object for the named charset

Attributes

Exceptions

if the specified charset name is illegal.

if the desired charset is not supported by this runtime.

Remarks

Returns a charset object for the named charset.

Java documentation for java.nio.charset.Charset.forName(java.lang.String).

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