Java.Nio.Charset.CharsetDecoder.IsCharsetDetected Property
Indicates whether this decoder has detected a charset; this method is optional.

Syntax

[get: Android.Runtime.Register("isCharsetDetected", "()Z", "GetIsCharsetDetectedHandler")]
public virtual bool IsCharsetDetected { get; }

Value

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.UnsupportedOperationExceptionif this decoder doesn't implement an auto-detecting charset.

Remarks

Indicates whether this decoder has detected a charset; this method is optional.

If this decoder implements an auto-detecting charset, then this method may start to return true during decoding operation to indicate that a charset has been detected in the input bytes and that the charset can be retrieved by invoking the CharsetDecoder.DetectedCharset method.

Note that a decoder that implements an auto-detecting charset may still succeed in decoding a portion of the given input even when it is unable to detect the charset. For this reason users should be aware that a false return value does not indicate that no decoding took place.

The default implementation always throws an UnsupportedOperationException; 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