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

Side by Side Diff: utils/archive/entry.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/archive.dart ('k') | utils/archive/entry_request.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("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
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 }
OLDNEW
« no previous file with comments | « utils/archive/archive.dart ('k') | utils/archive/entry_request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698