CharsetDecoder Constructors

Definition

Overloads

CharsetDecoder(IntPtr, JniHandleOwnership)

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

CharsetDecoder(Charset, Single, Single)

Initializes a new decoder.

CharsetDecoder(IntPtr, JniHandleOwnership)

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

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

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

CharsetDecoder(Charset, Single, Single)

Initializes a new decoder.

[Android.Runtime.Register(".ctor", "(Ljava/nio/charset/Charset;FF)V", "")]
protected CharsetDecoder (Java.Nio.Charset.Charset? cs, float averageCharsPerByte, float maxCharsPerByte);
[<Android.Runtime.Register(".ctor", "(Ljava/nio/charset/Charset;FF)V", "")>]
new Java.Nio.Charset.CharsetDecoder : Java.Nio.Charset.Charset * single * single -> Java.Nio.Charset.CharsetDecoder

Parameters

cs
Charset

The charset that created this decoder

averageCharsPerByte
Single

A positive float value indicating the expected number of characters that will be produced for each input byte

maxCharsPerByte
Single

A positive float value indicating the maximum number of characters that will be produced for each input byte

Attributes

Exceptions

if averageCharsPerByte <= 0 || maxCharsPerByte <= 0 || averageCharsPerByte > maxCharsPerByte.

Remarks

Initializes a new decoder. The new decoder will have the given chars-per-byte values and its replacement will be the string "&#92;uFFFD".

Java documentation for java.nio.charset.CharsetDecoder.CharsetDecoder(java.nio.charset.Charset, float, float).

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