| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 descriptor.entry; | 5 library descriptor.descriptor; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import '../utils.dart'; | 9 import '../utils.dart'; |
| 10 | 10 |
| 11 /// The base class for various declarative descriptions of filesystem entries. | 11 /// The base class for various declarative descriptions of filesystem entries. |
| 12 /// All asynchronous operations on descriptors are [schedule]d unless otherwise | 12 /// All asynchronous operations on descriptors are [schedule]d unless otherwise |
| 13 /// noted. | 13 /// noted. |
| 14 abstract class Descriptor { | 14 abstract class Descriptor { |
| 15 /// The name of this entry. | 15 /// The name of this entry. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 /// Returns the contents of [this] as a stream. This only works if [this] is a | 50 /// Returns the contents of [this] as a stream. This only works if [this] is a |
| 51 /// file entry. This operation is not [schedule]d. | 51 /// file entry. This operation is not [schedule]d. |
| 52 /// | 52 /// |
| 53 /// All errors in loading the file will be passed through the returned | 53 /// All errors in loading the file will be passed through the returned |
| 54 /// [Stream]. | 54 /// [Stream]. |
| 55 Stream<List<int>> read(); | 55 Stream<List<int>> read(); |
| 56 | 56 |
| 57 /// Returns a detailed tree-style description of [this]. | 57 /// Returns a detailed tree-style description of [this]. |
| 58 String describe(); | 58 String describe(); |
| 59 } | 59 } |
| OLD | NEW |