On this page
Latin1Codec class
A Latin1Codec encodes strings to ISO Latin-1 (aka ISO-8859-1) bytes and decodes Latin-1 bytes to strings.
Constructors
- Latin1Codec({bool allowInvalid = false})
const
- Instantiates a new Latin1Codec.
Properties
- decoder → Latin1Decoder
read-only, override
-
Returns the decoder of
this
, converting fromList<int>
toString
. - encoder → Latin1Encoder
read-only, override
-
Returns the encoder from
String
toList<int>
. - hashCode → int
read-only, inherited
- The hash code for this object.
- inverted → Codec<
List< int>, String> read-only, inherited -
Inverts
this
. - name → String
read-only, override
- The name of this codec, "iso-8859-1".
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- decode(
List< int> bytes, {bool? allowInvalid}) → String override -
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 source) → Uint8List override -
Encodes
input
. - fuse<
R>( Codec< List< int>, R> other) → Codec< String, R> inherited -
Fuses
this
withother
. - noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed.
- toString(
) → String inherited - A string representation of this object.
Operators
- operator ==(
Object other) → bool inherited - The equality operator.
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-convert/Latin1Codec-class.html