August 2003
Intermediate to advanced
928 pages
32h 1m
English
Decoder
This class converts byte arrays to
character arrays using the encoding
class from which it was constructed (a decoder is returned by the
GetDecoder( ) method of an
Encoding subclass). Decoder
saves its state between calls to GetChars( ), so
leftover bytes from previous input byte arrays are remembered and
used in subsequent calls.
public abstract class Decoder { // Protected Constructors protected Decoder( ); // Public Instance Methods public abstract int GetCharCount(byte[ ]bytes, intindex, intcount); public abstract int GetChars(byte[ ]bytes, intbyteIndex, intbyteCount, char[ ]chars, intcharIndex); }
Encoding.GetDecoder( )