OLD | NEW |
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 /** | 5 /** |
6 * The primary library file for the archive library. This is the only file that | 6 * The primary library file for the archive library. This is the only file that |
7 * should be imported by clients. | 7 * should be imported by clients. |
8 */ | 8 */ |
9 #library("archive"); | 9 library archive; |
10 | 10 |
11 #import("entry.dart", prefix: "entry"); | 11 import 'entry.dart' as entry; |
12 #import("reader.dart", prefix: "reader"); | 12 import 'reader.dart' as reader; |
13 | 13 |
14 // TODO(nweiz): Remove this when 3071 is fixed. | 14 // TODO(nweiz): Remove this when 3071 is fixed. |
15 /** An error raised by the archive library. */ | 15 /** An error raised by the archive library. */ |
16 abstract class ArchiveException { | 16 abstract class ArchiveException { |
17 /** A description of the error that occurred. */ | 17 /** A description of the error that occurred. */ |
18 final String message; | 18 final String message; |
19 | 19 |
20 /** The error code for the error, or null. */ | 20 /** The error code for the error, or null. */ |
21 final int errno; | 21 final int errno; |
22 } | 22 } |
23 | 23 |
24 // TODO(nweiz): Remove this when 3071 is fixed. | 24 // TODO(nweiz): Remove this when 3071 is fixed. |
25 /** See [reader.ArchiveReader]. */ | 25 /** See [reader.ArchiveReader]. */ |
26 class ArchiveReader extends reader.ArchiveReader {} | 26 class ArchiveReader extends reader.ArchiveReader {} |
27 | 27 |
28 // TODO(nweiz): Remove this when 3071 is fixed. | 28 // TODO(nweiz): Remove this when 3071 is fixed. |
29 /** See [entry.ArchiveEntry]. */ | 29 /** See [entry.ArchiveEntry]. */ |
30 class ArchiveEntry extends entry.ArchiveEntry { | 30 class ArchiveEntry extends entry.ArchiveEntry { |
31 ArchiveEntry.internal(List properties, int archiveId) | 31 ArchiveEntry.internal(List properties, int archiveId) |
32 : super.internal(properties, archiveId); | 32 : super.internal(properties, archiveId); |
33 | 33 |
34 /** Create a new [ArchiveEntry] with default values for all of its fields. */ | 34 /** Create a new [ArchiveEntry] with default values for all of its fields. */ |
35 static Future<ArchiveEntry> create() => entry.ArchiveEntry.create(); | 35 static Future<ArchiveEntry> create() => entry.ArchiveEntry.create(); |
36 } | 36 } |
OLD | NEW |