| 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 #library("entry"); | 5 library entry; |
| 6 | 6 |
| 7 #import("dart:io"); | 7 import 'dart:io'; |
| 8 #import("archive.dart", prefix: "archive"); | 8 import 'archive.dart' as archive; |
| 9 #import("entry_request.dart"); | 9 import 'entry_request.dart'; |
| 10 #import("read_request.dart", prefix: 'read'); | 10 import 'read_request.dart' as read; |
| 11 #import("utils.dart"); | 11 import 'utils.dart'; |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * A single file in an archive. | 14 * A single file in an archive. |
| 15 * | 15 * |
| 16 * This is accessible via [ArchiveInputStream.onEntry]. | 16 * This is accessible via [ArchiveInputStream.onEntry]. |
| 17 */ | 17 */ |
| 18 class ArchiveEntry { | 18 class ArchiveEntry { |
| 19 /** | 19 /** |
| 20 * The various properties of this archive entry, as sent over from the C | 20 * The various properties of this archive entry, as sent over from the C |
| 21 * extension. | 21 * extension. |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 class CompleteArchiveEntry extends ArchiveEntry { | 328 class CompleteArchiveEntry extends ArchiveEntry { |
| 329 /** The contents of the entry as bytes. */ | 329 /** The contents of the entry as bytes. */ |
| 330 final List<int> contentBytes; | 330 final List<int> contentBytes; |
| 331 | 331 |
| 332 /** The contents of the entry as a string. */ | 332 /** The contents of the entry as a string. */ |
| 333 String get contents => new String.fromCharCodes(contentBytes); | 333 String get contents => new String.fromCharCodes(contentBytes); |
| 334 | 334 |
| 335 CompleteArchiveEntry._(List properties, this.contentBytes) | 335 CompleteArchiveEntry._(List properties, this.contentBytes) |
| 336 : super.internal(properties, null); | 336 : super.internal(properties, null); |
| 337 } | 337 } |
| OLD | NEW |