Udostępnij za pośrednictwem


CharsetProvider.CharsetForName(String) Method

Definition

Retrieves a charset for the given charset name.

[Android.Runtime.Register("charsetForName", "(Ljava/lang/String;)Ljava/nio/charset/Charset;", "GetCharsetForName_Ljava_lang_String_Handler")]
public abstract Java.Nio.Charset.Charset? CharsetForName (string? charsetName);
[<Android.Runtime.Register("charsetForName", "(Ljava/lang/String;)Ljava/nio/charset/Charset;", "GetCharsetForName_Ljava_lang_String_Handler")>]
abstract member CharsetForName : 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, or null if the named charset is not supported by this provider

Attributes

Remarks

Retrieves a charset for the given charset name.

Java documentation for java.nio.charset.spi.CharsetProvider.charsetForName(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