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

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

Issue 22872012: Remove Encoding-enum from dart:io and add interface in dart:convert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo. Created 7 years, 4 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/convert/utf.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 5cbff1cd663e67c27637c9f048d8ac30b5f8b4d4..ffcadc72bfce4bc2b7de0b0f4b8459e47a8db084 100644
--- a/sdk/lib/io/file.dart
+++ b/sdk/lib/io/file.dart
@@ -204,7 +204,7 @@ abstract class File implements FileSystemEntity {
* [IOSink] has been created.
*/
IOSink openWrite({FileMode mode: FileMode.WRITE,
- Encoding encoding: Encoding.UTF_8});
+ Encoding encoding: UTF8});
/**
* Read the entire file contents as a list of bytes. Returns a
@@ -227,7 +227,7 @@ abstract class File implements FileSystemEntity {
* Returns a [:Future<String>:] that completes with the string once
* the file contents has been read.
*/
- Future<String> readAsString({Encoding encoding: Encoding.UTF_8});
+ Future<String> readAsString({Encoding encoding: UTF8});
/**
* Synchronously read the entire file contents as a string using the
@@ -235,7 +235,7 @@ abstract class File implements FileSystemEntity {
*
* Throws a [FileException] if the operation fails.
*/
- String readAsStringSync({Encoding encoding: Encoding.UTF_8});
+ String readAsStringSync({Encoding encoding: UTF8});
/**
* Read the entire file contents as lines of text using the given
@@ -244,7 +244,7 @@ abstract class File implements FileSystemEntity {
* Returns a [:Future<List<String>>:] that completes with the lines
* once the file contents has been read.
*/
- Future<List<String>> readAsLines({Encoding encoding: Encoding.UTF_8});
+ Future<List<String>> readAsLines({Encoding encoding: UTF8});
/**
* Synchronously read the entire file contents as lines of text
@@ -252,7 +252,7 @@ abstract class File implements FileSystemEntity {
*
* Throws a [FileException] if the operation fails.
*/
- List<String> readAsLinesSync({Encoding encoding: Encoding.UTF_8});
+ List<String> readAsLinesSync({Encoding encoding: UTF8});
/**
* Write a list of bytes to a file.
@@ -293,7 +293,7 @@ abstract class File implements FileSystemEntity {
*/
Future<File> writeAsString(String contents,
{FileMode mode: FileMode.WRITE,
- Encoding encoding: Encoding.UTF_8});
+ Encoding encoding: UTF8});
/**
* Synchronously write a string to a file.
@@ -310,7 +310,7 @@ abstract class File implements FileSystemEntity {
*/
void writeAsStringSync(String contents,
{FileMode mode: FileMode.WRITE,
- Encoding encoding: Encoding.UTF_8});
+ Encoding encoding: UTF8});
/**
* Get the path of the file.
@@ -428,7 +428,7 @@ abstract class RandomAccessFile {
* RandomAccessFile when the write completes.
*/
Future<RandomAccessFile> writeString(String string,
- {Encoding encoding: Encoding.UTF_8});
+ {Encoding encoding: UTF8});
/**
* Synchronously writes a single string to the file using the given
@@ -437,7 +437,7 @@ abstract class RandomAccessFile {
* Throws a [FileException] if the operation fails.
*/
void writeStringSync(String string,
- {Encoding encoding: Encoding.UTF_8});
+ {Encoding encoding: UTF8});
/**
* Gets the current byte position in the file. Returns a
« no previous file with comments | « sdk/lib/convert/utf.dart ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698