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

Side by Side Diff: runtime/bin/input_stream.dart

Issue 10662015: Remove reference to non-existing classes from encodings class comment. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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) 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 * Basic input stream which supplies binary data. 6 * Basic input stream which supplies binary data.
7 * 7 *
8 * Input streams are used to read data sequentially from some data 8 * Input streams are used to read data sequentially from some data
9 * source. All input streams are non-blocking. They each have a number 9 * source. All input streams are non-blocking. They each have a number
10 * of read calls which will always return without any IO related 10 * of read calls which will always return without any IO related
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 /** 94 /**
95 * Sets the handler that gets called when the underlying 95 * Sets the handler that gets called when the underlying
96 * communication channel gets into some kind of error situation. 96 * communication channel gets into some kind of error situation.
97 */ 97 */
98 void set onError(void callback(e)); 98 void set onError(void callback(e));
99 } 99 }
100 100
101 101
102 /** 102 /**
103 * String encodings supported by [StringInputStream] and 103 * String encodings.
104 * [StringOutputStream].
105 */ 104 */
106 class Encoding { 105 class Encoding {
107 static final Encoding UTF_8 = const Encoding._internal("UTF-8"); 106 static final Encoding UTF_8 = const Encoding._internal("UTF-8");
108 static final Encoding ISO_8859_1 = const Encoding._internal("ISO-8859-1"); 107 static final Encoding ISO_8859_1 = const Encoding._internal("ISO-8859-1");
109 static final Encoding ASCII = const Encoding._internal("ASCII"); 108 static final Encoding ASCII = const Encoding._internal("ASCII");
110 const Encoding._internal(String this.name); 109 const Encoding._internal(String this.name);
111 final String name; 110 final String name;
112 } 111 }
113 112
114 113
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 void set onError(void callback(e)); 239 void set onError(void callback(e));
241 } 240 }
242 241
243 242
244 class StreamException implements Exception { 243 class StreamException implements Exception {
245 const StreamException([String this.message = ""]); 244 const StreamException([String this.message = ""]);
246 const StreamException.streamClosed() : message = "Stream closed"; 245 const StreamException.streamClosed() : message = "Stream closed";
247 String toString() => "StreamException: $message"; 246 String toString() => "StreamException: $message";
248 final String message; 247 final String message;
249 } 248 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698