Utf8Decoder class

This class converts UTF-8 code units (lists of unsigned 8-bit integers) to a string.

This class converts UTF-8 code units (lists of unsigned 8-bit integers) to a string.

Extends:

Constructors

Utf8Decoder ( {bool allowMalformed: false} )
const
Instantiates a new Utf8Decoder.

Instance Methods

convert ( List<int> codeUnits, [int start = 0, int end] ) → String
Converts the UTF-8 codeUnits (a list of unsigned 8-bit integers) to the corresponding string.
startChunkedConversion ( Sink<String> sink ) → ByteConversionSink
Starts a chunked conversion.
bind ( Stream<List<int>> stream ) → Stream<String>
Transform the incoming [stream]'s events.
fuse ( Converter<String> next ) → Converter<List<int>>
Fuses this with [other].