Charset.DisplayName Method

Definition

Overloads

DisplayName()

Returns this charset's human-readable name for the default locale.

DisplayName(Locale)

Returns this charset's human-readable name for the given locale.

DisplayName()

Returns this charset's human-readable name for the default locale.

[Android.Runtime.Register("displayName", "()Ljava/lang/String;", "GetDisplayNameHandler")]
public virtual string? DisplayName ();
[<Android.Runtime.Register("displayName", "()Ljava/lang/String;", "GetDisplayNameHandler")>]
abstract member DisplayName : unit -> string
override this.DisplayName : unit -> string

Returns

The display name of this charset in the default locale

Attributes

Remarks

Returns this charset's human-readable name for the default locale.

The default implementation of this method simply returns this charset's canonical name. Concrete subclasses of this class may override this method in order to provide a localized display name.

Java documentation for java.nio.charset.Charset.displayName().

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

DisplayName(Locale)

Returns this charset's human-readable name for the given locale.

[Android.Runtime.Register("displayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetDisplayName_Ljava_util_Locale_Handler")]
public virtual string? DisplayName (Java.Util.Locale? locale);
[<Android.Runtime.Register("displayName", "(Ljava/util/Locale;)Ljava/lang/String;", "GetDisplayName_Ljava_util_Locale_Handler")>]
abstract member DisplayName : Java.Util.Locale -> string
override this.DisplayName : Java.Util.Locale -> string

Parameters

locale
Locale

The locale for which the display name is to be retrieved

Returns

The display name of this charset in the given locale

Attributes

Remarks

Returns this charset's human-readable name for the given locale.

The default implementation of this method simply returns this charset's canonical name. Concrete subclasses of this class may override this method in order to provide a localized display name.

Java documentation for java.nio.charset.Charset.displayName(java.util.Locale).

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