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