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

Side by Side Diff: sdk/lib/core/resource.dart

Issue 1385933002: clearly mark resource as deprecated (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: indicate this is the last release Created 5 years, 2 months 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
« no previous file with comments | « CHANGELOG.md ('k') | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * A resource that can be read into the program. 8 * A resource that can be read into the program.
9 * 9 *
10 * WARNING: This API is _experimental_, 10 * WARNING: This API is _experimental_,
11 * and it may be changed or removed in future releases 11 * and it may be changed or removed in future releases
Lasse Reichstein Nielsen 2015/10/06 07:39:16 Replace these two lines by: WARNING: This class i
12 * 12 *
13 * A resource is data that can be located using a URI and read into 13 * A resource is data that can be located using a URI and read into
14 * the program at runtime. 14 * the program at runtime.
15 * The URI may use the `package` scheme to read resources provided 15 * The URI may use the `package` scheme to read resources provided
16 * along with package sources. 16 * along with package sources.
17 */ 17 */
18 @Deprecated('1.13 is the last release to contain this class. Please use <insert URI> instead.')
Lasse Reichstein Nielsen 2015/10/06 07:39:16 Just use @Deprecated("1.14"). The "expires" just n
18 abstract class Resource { 19 abstract class Resource {
19 /** 20 /**
20 * Creates a resource object with the given [uri] as location. 21 * Creates a resource object with the given [uri] as location.
21 * 22 *
22 * The `uri` is a string containing a valid URI. 23 * The `uri` is a string containing a valid URI.
23 * If the string is not a valid URI, using any of the functions on 24 * If the string is not a valid URI, using any of the functions on
24 * the resource object will fail. 25 * the resource object will fail.
25 * 26 *
26 * The URI may be relative, in which case it will be resolved 27 * The URI may be relative, in which case it will be resolved
27 * against [Uri.base] before being used. 28 * against [Uri.base] before being used.
(...skipping 18 matching lines...) Expand all
46 Future<List<int>> readAsBytes(); 47 Future<List<int>> readAsBytes();
47 48
48 /** 49 /**
49 * Read the resource content as a string. 50 * Read the resource content as a string.
50 * 51 *
51 * The content is decoded into a string using an [Encoding]. 52 * The content is decoded into a string using an [Encoding].
52 * If no other encoding is provided, it defaults to UTF-8. 53 * If no other encoding is provided, it defaults to UTF-8.
53 */ 54 */
54 Future<String> readAsString({Encoding encoding}); 55 Future<String> readAsString({Encoding encoding});
55 } 56 }
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698