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

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

Issue 14150002: Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/io_sink.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/stdio.dart
diff --git a/sdk/lib/io/stdio.dart b/sdk/lib/io/stdio.dart
index 216ba381a28534ebd7f27bfba6617656ecd95bd4..5cad1f0c89139a4afa2d3b59d97e1ee575bbee70 100644
--- a/sdk/lib/io/stdio.dart
+++ b/sdk/lib/io/stdio.dart
@@ -39,7 +39,8 @@ class _StdSink implements IOSink {
void write(object) => _sink.write(object);
void writeln([object = "" ]) => _sink.writeln(object);
void writeAll(objects, [sep = ""]) => _sink.writeAll(objects, sep);
- void writeBytes(List<int> data) => _sink.writeBytes(data);
+ void add(List<int> data) => _sink.add(data);
+ void addError(AsyncError error) => _sink.addError(error);
void writeCharCode(int charCode) => _sink.writeCharCode(charCode);
Future consume(Stream<List<int>> stream) => _sink.consume(stream);
Future addStream(Stream<List<int>> stream) => _sink.addStream(stream);
« no previous file with comments | « sdk/lib/io/io_sink.dart ('k') | sdk/lib/io/websocket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698