AsciiCodec class

An AsciiCodec allows encoding strings as ASCII bytes and decoding ASCII bytes to strings.

An AsciiCodec allows encoding strings as ASCII bytes and decoding ASCII bytes to strings.

Extends:

Constructors

AsciiCodec ( {bool allowInvalid: false} )
const
Instantiates a new AsciiCodec.

Instance Properties

name String
read-only
encoder AsciiEncoder
read-only
decoder AsciiDecoder
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 ASCII bytes (a list of unsigned 7-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.