| Index: sdk/lib/codec/encoding.dart
|
| diff --git a/sdk/lib/codec/encoding.dart b/sdk/lib/codec/encoding.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4c870936efe213485b689345d4b56e0c5a311e69
|
| --- /dev/null
|
| +++ b/sdk/lib/codec/encoding.dart
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +part of dart.codec;
|
| +
|
| +abstract class Encoding {
|
| + static const UTF8 = const Utf8Codec();
|
| + static const ASCII = const AsciiCodec();
|
| + static const ISO_8859_1 = const Iso8859_1Codec();
|
| +}
|
| +
|
| +class Utf8Codec extends Codec<String, List<int>> {
|
| + const Utf8Codec();
|
| +
|
| + Converter get encoder => new Utf8Encoder();
|
| + Converter get decoder => new Utf8Decoder();
|
| +}
|
| +
|
| +class AsciiCodec extends Codec<String, List<int>> {
|
| + const AsciiCodec();
|
| +
|
| + Converter get encoder => new AsciiEncoder();
|
| + Converter get decoder => new AsciiDecoder();
|
| +}
|
| +
|
| +class Iso8859_1Codec extends Codec<String, List<int>> {
|
| + const Iso8859_1Codec();
|
| +
|
| + Converter get encoder => new Iso8859_1Encoder();
|
| + Converter get decoder => new Iso8859_1Decoder();
|
| +}
|
|
|