DecoderExceptionFallbackBuffer
Class
Definition
Throws DecoderFallbackException when an encoded input byte sequence cannot be converted to a decoded output character. This class cannot be inherited.
public sealed class DecoderExceptionFallbackBuffer : System.Text.DecoderFallbackBuffer
- Inheritance
Inherited Members
System.Object
System.Text.DecoderFallbackBuffer
Remarks
A common reason for an encoding or decoding operation to fail is if the underlying encoding class does not provide a mapping between a character and an equivalent byte sequence. If the input byte sequence cannot be converted to an output character, the decoding operation calls the Fallback method, which throws DecoderFallbackException.
The DecoderFallbackBuffer class, which represents a data buffer used in a decoding operation, is the base class for the DecoderExceptionFallbackBuffer class. However, instead of a data buffer, the DecoderExceptionFallbackBuffer class represents a standard behavior in which an exception is thrown if a decoding operation fails. No actual data buffer exists, and the members designed to manipulate such a buffer do no significant work.
Constructors
| DecoderExceptionFallbackBuffer() |
Initializes a new instance of the DecoderExceptionFallbackBuffer class. |
Properties
| Remaining |
Gets the number of characters in the current DecoderExceptionFallbackBuffer object that remain to be processed. |
Methods
| Fallback(Byte[], Int32) |
Throws DecoderFallbackException when the input byte sequence cannot be decoded. The nominal return value is not used. |
| GetNextChar() |
Retrieves the next character in the exception data buffer. |
| MovePrevious() |
Causes the next call to GetNextChar() to access the exception data buffer character position that is prior to the current position. |