Sdílet prostřednictvím


Charset Constructors

Definition

Overloads

Charset(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Charset(String, String[])

Initializes a new charset with the given canonical name and alias set.

Charset(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Charset (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Nio.Charset.Charset : nativeint * Android.Runtime.JniHandleOwnership -> Java.Nio.Charset.Charset

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

Charset(String, String[])

Initializes a new charset with the given canonical name and alias set.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;[Ljava/lang/String;)V", "")]
protected Charset (string? canonicalName, string[]? aliases);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;[Ljava/lang/String;)V", "")>]
new Java.Nio.Charset.Charset : string * string[] -> Java.Nio.Charset.Charset

Parameters

canonicalName
String

The canonical name of this charset

aliases
String[]

An array of this charset's aliases, or null if it has no aliases

Attributes

Exceptions

on an illegal value being supplied for either canonicalName or for any element of aliases.

Remarks

Initializes a new charset with the given canonical name and alias set.

Java documentation for java.nio.charset.Charset.Charset(java.lang.String, 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