Java.Nio.Charset.CharsetDecoder.Decode Method
This is a facade method for the decoding operation.

Syntax

[Android.Runtime.Register("decode", "(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;", "")]
public Java.Nio.CharBuffer Decode (Java.Nio.ByteBuffer in)

Parameters

in
the input buffer.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif another decoding operation is ongoing.
Java.Nio.Charset.MalformedInputExceptionif an illegal input byte sequence for this charset was encountered, and the action for malformed error is CodingErrorAction.Report
Java.Nio.Charset.UnmappableCharacterExceptionif a legal but unmappable input byte sequence for this charset was encountered, and the action for unmappable character error is CodingErrorAction.Report. Unmappable means the byte sequence at the input buffer's current position cannot be mapped to a Unicode character sequence.
Java.Nio.Charset.CharacterCodingExceptionif another exception happened during the decode operation.

Remarks

This is a facade method for the decoding operation.

This method decodes the remaining byte sequence of the given byte buffer into a new character buffer. This method performs a complete decoding operation, resets at first, then decodes, and flushes at last.

This method should not be invoked while another decode operation is ongoing.

[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