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 Inherited ( String input ) → List<int>
fuse Inherited ( Codec<List<int>> other ) → Codec<String>
Fuses this with other.
decodeStream Inherited ( Stream<List<int>> byteStream ) → Future<String>
encode Inherited ( String input ) → List<int>
fuse Inherited ( Codec<List<int>> other ) → Codec<String>
Fuses this with other.