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: runtime/bin/file_impl.dart

Issue 10945004: Make it possible to read a specific number of characters from a string input stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « no previous file | runtime/bin/input_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_impl.dart
diff --git a/runtime/bin/file_impl.dart b/runtime/bin/file_impl.dart
index eafb4bd2492459ea8193d11adbd0ac13402df0b3..fef7bc0bd031221efedb136edc9e22e8781bcf3b 100644
--- a/runtime/bin/file_impl.dart
+++ b/runtime/bin/file_impl.dart
@@ -722,7 +722,7 @@ class _File extends _FileBase implements File {
if (bytes.length == 0) return "";
var decoder = _StringDecoders.decoder(encoding);
decoder.write(bytes);
- return decoder.decoded;
+ return decoder.decoded();
});
}
@@ -731,7 +731,7 @@ class _File extends _FileBase implements File {
List<int> bytes = readAsBytesSync();
if (bytes.length == 0) return "";
decoder.write(bytes);
- return decoder.decoded;
+ return decoder.decoded();
}
List<String> _getDecodedLines(_StringDecoder decoder) {
@@ -743,7 +743,7 @@ class _File extends _FileBase implements File {
}
// If there is more data with no terminating line break we treat
// it as the last line.
- var data = decoder.decoded;
+ var data = decoder.decoded();
if (data != null) {
result.add(data);
}
« no previous file with comments | « no previous file | runtime/bin/input_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698