OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dart.convert; | 5 part of dart.convert; |
6 | 6 |
7 /** | 7 /** |
8 * Open-ended Encoding enum. | 8 * Open-ended Encoding enum. |
9 */ | 9 */ |
10 // TODO(floitsch): dart:io already has an Encoding class. If we can't | 10 // TODO(floitsch): dart:io already has an Encoding class. If we can't |
11 // consolitate them, we need to remove `Encoding` here. | 11 // consolitate them, we need to remove `Encoding` here. |
12 abstract class Encoding extends Codec<String, List<int>> { | 12 abstract class Encoding extends Codec<String, List<int>> { |
13 const Encoding(); | 13 const Encoding(); |
| 14 |
| 15 // TODO(floitsch): should we introduce a StringToByteEncoder and |
| 16 // a ByteToStringDecoder so that we have better typing? |
14 } | 17 } |
15 | 18 |
16 // TODO(floitsch): add other encodings, like ASCII and ISO_8859_1. | 19 // TODO(floitsch): add other encodings, like ASCII and ISO_8859_1. |
OLD | NEW |