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

Inheritance

Properties

decoder Converter<List<int>,String>
read-only

encoder Converter<String,List<int>>
read-only

inverted Codec<List<int>,String>
read-only, inherited

Inverts this.

name String
read-only

Constructors

Latin1Codec({bool allowInvalid: false})
const

Instantiates a new Latin1Codec.

Methods

decode(List<int> bytes, {bool allowInvalid}) → String

Decodes the Latin-1 bytes (a list of unsigned 8-bit integers) to the corresponding string.

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.