W3cubDocs

/Dart 2

Encoding class

Open-ended Encoding enum.

Inheritance
Implementers

Constructors

Encoding()
const

Properties

decoderConverter<List<int>, String>
read-only, override
Returns the decoder of this, converting from List<int> to String. [...]
encoderConverter<String, List<int>>
read-only, override
Returns the encoder from String to List<int>. [...]
nameString
read-only
Name of the encoding. [...]
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.

Methods

decodeStream(Stream<List<int>> byteStream) → Future<String>
decode(List<int> encoded) → String
inherited
Decodes encoded data. [...]
encode(String input) → List<int>
inherited
Encodes input. [...]
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.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Static Methods

getByName(String name) → Encoding
Gets an Encoding object from the name of the character set name. The names used are the IANA official names for the character set (see http://www.iana.org/assignments/character-sets/character-sets.xml). [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-convert/Encoding-class.html