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

Side by Side Diff: sdk/lib/io/file_impl.dart

Issue 11419032: Switch libraries to using new tags. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to tip of tree. Changed library names to dart.x Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/io/file.dart ('k') | sdk/lib/io/http.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io;
6
5 class _FileInputStream extends _BaseDataInputStream implements InputStream { 7 class _FileInputStream extends _BaseDataInputStream implements InputStream {
6 _FileInputStream(String name) 8 _FileInputStream(String name)
7 : _data = const [], 9 : _data = const [],
8 _position = 0, 10 _position = 0,
9 _filePosition = 0 { 11 _filePosition = 0 {
10 var file = new File(name); 12 var file = new File(name);
11 var future = file.open(FileMode.READ); 13 var future = file.open(FileMode.READ);
12 future.handleException((e) { 14 future.handleException((e) {
13 _reportError(e); 15 _reportError(e);
14 return true; 16 return true;
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 new FileIOException("File closed '$_name'")); 1159 new FileIOException("File closed '$_name'"));
1158 }); 1160 });
1159 return completer.future; 1161 return completer.future;
1160 } 1162 }
1161 1163
1162 final String _name; 1164 final String _name;
1163 int _id; 1165 int _id;
1164 1166
1165 SendPort _fileService; 1167 SendPort _fileService;
1166 } 1168 }
OLDNEW
« no previous file with comments | « sdk/lib/io/file.dart ('k') | sdk/lib/io/http.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698