Latin1Codec class

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

Inheritance

Constructors

Latin1Codec({bool allowInvalid: false })
const

Instantiates a new Latin1Codec.

Properties

decoderLatin1Decoder
read-only
encoderLatin1Encoder
read-only
nameString
read-only
hashCodeint
read-only, inherited

The hash code for this object.

invertedCodec<List<int>, String>
read-only, inherited

Inverts this.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

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<R>(Codec<List<int>, R> other) → Codec<String, R>
inherited

Fuses this with other.

noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

toString() → String
inherited

Returns a string representation of this object.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-convert/Latin1Codec-class.html