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

Unified Diff: runtime/bin/file_impl.dart

Issue 8933029: Add pipe to input stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comment 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
Index: runtime/bin/file_impl.dart
diff --git a/runtime/bin/file_impl.dart b/runtime/bin/file_impl.dart
index 8ad4b0740314f249b5a9871516abd4306e8bd9cf..3a72b9ae1a67c7f43acd7201bfc3e41db3e72ff1 100644
--- a/runtime/bin/file_impl.dart
+++ b/runtime/bin/file_impl.dart
@@ -48,6 +48,10 @@ class _FileInputStream implements FileInputStream {
return _length - _file.positionSync();
}
+ void pipe(OutputStream output, [bool close = true]) {
+ _pipe(this, output, close: close);
+ }
+
bool closed() => _eof;
void close() {
@@ -110,8 +114,8 @@ class _FileInputStream implements FileInputStream {
bool _closed = false;
Timer _scheduledDataCallback;
Timer _scheduledCloseCallback;
- var _clientDataHandler;
- var _clientCloseHandler;
+ Function _clientDataHandler;
+ Function _clientCloseHandler;
}

Powered by Google App Engine
This is Rietveld 408576698