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

Side by Side Diff: utils/archive/input_stream.dart

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « utils/archive/entry_request.dart ('k') | utils/archive/options.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 #library("input_stream"); 5 library input_stream;
6 6
7 #import("archive.dart", prefix: "archive"); 7 import 'archive.dart' as archive;
8 #import("entry.dart"); 8 import 'entry.dart';
9 #import("read_request.dart"); 9 import 'read_request.dart';
10 #import("utils.dart"); 10 import 'utils.dart';
11 11
12 /** 12 /**
13 * A stream of [ArchiveEntry]s being read from an archive. 13 * A stream of [ArchiveEntry]s being read from an archive.
14 * 14 *
15 * This is accessible via [ArchiveReader]. 15 * This is accessible via [ArchiveReader].
16 */ 16 */
17 class ArchiveInputStream { 17 class ArchiveInputStream {
18 /** 18 /**
19 * The id of the underlying archive. 19 * The id of the underlying archive.
20 * 20 *
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 if (entry.isInputOpen) return entry.inputComplete; 154 if (entry.isInputOpen) return entry.inputComplete;
155 return new Future.immediate(null); 155 return new Future.immediate(null);
156 }); 156 });
157 future.onComplete((_) { 157 future.onComplete((_) {
158 _currentEntry = null; 158 _currentEntry = null;
159 entry.close(); 159 entry.close();
160 }); 160 });
161 return future; 161 return future;
162 } 162 }
163 } 163 }
OLDNEW
« no previous file with comments | « utils/archive/entry_request.dart ('k') | utils/archive/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698