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

Unified Diff: runtime/bin/input_stream.dart

Issue 8933029: Add pipe to input stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments from ager@ Created 9 years 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/file_impl.dart ('k') | runtime/bin/socket_stream.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/input_stream.dart
diff --git a/runtime/bin/input_stream.dart b/runtime/bin/input_stream.dart
index 300f50e77b52010292bf00930022ec22df2edf90..6f81287558f9638ed6825d595392770f9dbe1432 100644
--- a/runtime/bin/input_stream.dart
+++ b/runtime/bin/input_stream.dart
@@ -31,6 +31,16 @@ interface InputStream {
int available();
/**
+ * Pipe the content of this input stream directly to the output
+ * stream [output]. The default behavior is to close the output when
+ * all the data from the input stream have been written. Specifying
+ * [:false:] for the optional argument [close] keeps the output
+ * stream open after writing all data from the input stream. The
+ * default value for [close] is [:true:].
+ */
+ void pipe(OutputStream output, [bool close]);
+
+ /**
* Returns whether the stream is closed. There will be no more data
* to read.
*/
« no previous file with comments | « runtime/bin/file_impl.dart ('k') | runtime/bin/socket_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698