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

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

Issue 11412033: Rename File.readAsText to File.readAsString. There is no Text type in Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « samples/buildhook2/build.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file.dart
diff --git a/sdk/lib/io/file.dart b/sdk/lib/io/file.dart
index 43ff45b9ce6612c9feaedeb732fa6094cced4d80..97fc18c9bcc106bb891365d5c056ec9f7c8d6fd1 100644
--- a/sdk/lib/io/file.dart
+++ b/sdk/lib/io/file.dart
@@ -184,19 +184,19 @@ abstract class File {
List<int> readAsBytesSync();
/**
- * Read the entire file contents as text using the given
+ * Read the entire file contents as a string using the given
* [encoding].
*
* Returns a [:Future<String>:] that completes with the string once
* the file contents has been read.
*/
- Future<String> readAsText([Encoding encoding = Encoding.UTF_8]);
+ Future<String> readAsString([Encoding encoding = Encoding.UTF_8]);
/**
- * Synchronously read the entire file contents as text using the
+ * Synchronously read the entire file contents as a string using the
* given [encoding].
*/
- String readAsTextSync([Encoding encoding = Encoding.UTF_8]);
+ String readAsStringSync([Encoding encoding = Encoding.UTF_8]);
/**
* Read the entire file contents as lines of text using the give
« no previous file with comments | « samples/buildhook2/build.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698