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

Unified Diff: runtime/bin/file.dart

Issue 9029001: Add close to input stream and cleanup socket and streams (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments by ager@ Created 8 years, 12 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/eventhandler_linux.h ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.dart
diff --git a/runtime/bin/file.dart b/runtime/bin/file.dart
index 9c0f509086c6a3fba34c978a4ff901e2d26b5ef5..3ad0ec7186899c101a08adc492e959edb1135415 100644
--- a/runtime/bin/file.dart
+++ b/runtime/bin/file.dart
@@ -80,14 +80,14 @@ interface File default _File {
* input stream must be closed when no longer used to free up
* system resources.
*/
- FileInputStream openInputStream();
+ InputStream openInputStream();
/**
* Creates a new independent output stream for the file. The file
* output stream must be closed when no longer used to free up
* system resources.
*/
- FileOutputStream openOutputStream();
+ OutputStream openOutputStream();
/**
* Get the name of the file.
@@ -254,15 +254,6 @@ interface RandomAccessFile {
}
-interface FileInputStream extends InputStream {
- void close();
-}
-
-
-interface FileOutputStream extends OutputStream {
-}
-
-
class FileIOException implements Exception {
const FileIOException([String this.message = ""]);
String toString() => "FileIOException: $message";
« no previous file with comments | « runtime/bin/eventhandler_linux.h ('k') | runtime/bin/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698