UTF8Codec class

Encodes UTF-16 code units into a UTF-8 octet sequence and decodes UTF-8 octets back into code points.

Based on RFC-3629. See standard for the codec instance.

Inheritance

Properties

decoder → UTF8Decoder
Returns the decoder of this, converting from T to S.
final
encoder → UTF8Encoder
Returns the encoder from S to T.
final
hashCode → int
The hash code for this object.
no setterinherited
inverted → Codec<Iterable<int>, Iterable<int>>
Inverts this.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Iterable<int> encoded) → Iterable<int>
Decodes encoded data.
inherited
decodeBuffer(covariant ByteBuffer encoded) → Iterable<int>
Decodes an encoded buffer using this codec
inherited
encode(Iterable<int> input) → Iterable<int>
Encodes input.
inherited
encodeBuffer(covariant ByteBuffer input) → Iterable<int>
Encodes an input buffer using this codec
inherited
fuse<R>(Codec<Iterable<int>, R> other) → Codec<Iterable<int>, R>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

standard → const UTF8Codec
Codec instance to encode and decode UTF-8 character code units to 8-bit UTF-8 octet sequence.