Java.Nio.Charset.CharsetDecoder.DetectedCharset Method
Gets the charset detected by this decoder; this method is optional.

Syntax

[Android.Runtime.Register("detectedCharset", "()Ljava/nio/charset/Charset;", "GetDetectedCharsetHandler")]
public virtual Charset DetectedCharset ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.UnsupportedOperationExceptionif this decoder does not implement an auto-detecting charset.
Java.Lang.IllegalStateExceptionif insufficient bytes have been read to determine the charset.

Remarks

Gets the charset detected by this decoder; this method is optional.

If implementing an auto-detecting charset, then this decoder returns the detected charset from this method when it is available. The returned charset will be the same for the rest of the decode operation.

If insufficient bytes have been read to determine the charset, an IllegalStateException will be thrown.

The default implementation always throws UnsupportedOperationException, so it should be overridden by a subclass if needed.

[Android Documentation]

Requirements

Namespace: Java.Nio.Charset
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1