Latin1Codec class

A LatinCodec encodes strings to ISO Latin-1 (aka ISO-8859-1) bytes and decodes Latin-1 bytes to strings.

A LatinCodec encodes strings to ISO Latin-1 (aka ISO-8859-1) bytes and decodes Latin-1 bytes to strings.

Extends

Constructors

Latin1Codec({bool allowInvalid: false})
const
Instantiates a new Latin1Codec.

Instance Properties

name String
read-only
encoder Converter<String,List<int>>
read-only
decoder Converter<List<int>,String>
read-only
inverted Codec<List<int>,String> Inherited
read-only
inverted Codec<List<int>,String> Inherited
read-only

Instance Methods

decode(List<int> bytes, {bool allowInvalid}) → String
Decodes the Latin-1 bytes (a list of unsigned 8-bit integers) to the corresponding string.
encode(String input) → List<int> Inherited
fuse(Codec<List<int>> other) → Codec<String> Inherited
Fuses this with other.
decodeStream(Stream<List<int>> byteStream) → Future<String> Inherited
encode(String input) → List<int> Inherited
fuse(Codec<List<int>> other) → Codec<String> Inherited
Fuses this with other.