Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Unified Diff: sdk/lib/io/string_transformer.dart

Issue 12313057: Remove old InputStream and OutputStream classes from dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/io/string_stream.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/string_transformer.dart
diff --git a/sdk/lib/io/string_transformer.dart b/sdk/lib/io/string_transformer.dart
index ea433a01f0ffec0dfa23d1e5230bb3f21156caa3..857b8dc2bc8cd9afab030bd40cf9fcda5878a58c 100644
--- a/sdk/lib/io/string_transformer.dart
+++ b/sdk/lib/io/string_transformer.dart
@@ -5,6 +5,23 @@
part of dart.io;
/**
+ * String encodings.
+ */
+class Encoding {
+ static const Encoding UTF_8 = const Encoding._internal("UTF-8");
+ static const Encoding ISO_8859_1 = const Encoding._internal("ISO-8859-1");
+ static const Encoding ASCII = const Encoding._internal("ASCII");
+ /**
+ * SYSTEM encoding is the current code page on Windows and UTF-8 on
+ * Linux and Mac.
+ */
+ static const Encoding SYSTEM = const Encoding._internal("SYSTEM");
+ const Encoding._internal(String this.name);
+ final String name;
+}
+
+
+/**
* Stream transformer that can decode a stream of bytes into a stream of
* strings using [encoding].
*
« no previous file with comments | « sdk/lib/io/string_stream.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698