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

Unified Diff: runtime/bin/list_stream.dart

Issue 10938010: Switch from interfaces to abstract classes in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Add test binaries. 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 | « runtime/bin/input_stream.dart ('k') | runtime/bin/output_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/list_stream.dart
diff --git a/runtime/bin/list_stream.dart b/runtime/bin/list_stream.dart
index 61187de9738ee8f6b1ee4481888fbb5f165a82a8..849d5e7313aab3582dc4eef3f59aed4472d12bf1 100644
--- a/runtime/bin/list_stream.dart
+++ b/runtime/bin/list_stream.dart
@@ -12,12 +12,12 @@
* method must be called when the last data has been written to the
* [ListInputStream].
*/
-interface ListInputStream extends InputStream default _ListInputStream {
+abstract class ListInputStream implements InputStream {
/**
* Create an empty [ListInputStream] to which data can be written
* using the [write] method.
*/
- ListInputStream();
+ factory ListInputStream() => new _ListInputStream();
/**
* Write more data to be streamed over to the [ListInputStream].
@@ -36,11 +36,11 @@ interface ListInputStream extends InputStream default _ListInputStream {
* [ListOutputStream] makes it possible to use the [OutputStream]
* interface to write data to a [List] of integers.
*/
-interface ListOutputStream extends OutputStream default _ListOutputStream {
+abstract class ListOutputStream implements OutputStream {
/**
* Create a [ListOutputStream].
*/
- ListOutputStream();
+ factory ListOutputStream() => new _ListOutputStream();
/**
* Reads all available data from the stream. If no data is available `null`
« no previous file with comments | « runtime/bin/input_stream.dart ('k') | runtime/bin/output_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698