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 /** | 5 /** |
6 * File, socket, HTTP, and other I/O support for server applications. | 6 * File, socket, HTTP, and other I/O support for server applications. |
7 * | 7 * |
8 * The I/O library is used for Dart server applications, | 8 * The I/O library is used for Dart server applications, |
9 * which run on a stand-alone Dart VM from the command line. | 9 * which run on a stand-alone Dart VM from the command line. |
10 * *This library does not work in browser-based applications.* | 10 * *This library does not work in browser-based applications.* |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 * The standard input stream is a true [Stream], so it inherits | 179 * The standard input stream is a true [Stream], so it inherits |
180 * properties and methods from the Stream class. | 180 * properties and methods from the Stream class. |
181 * | 181 * |
182 * To read text synchronously from the command line | 182 * To read text synchronously from the command line |
183 * (the program blocks waiting for user to type information): | 183 * (the program blocks waiting for user to type information): |
184 * | 184 * |
185 * String inputText = stdin.readLineSync(); | 185 * String inputText = stdin.readLineSync(); |
186 * | 186 * |
187 * ## Other resources | 187 * ## Other resources |
188 * | 188 * |
189 * For an introduction to I/O in Dart, see the | 189 * For an introduction to I/O in Dart, see the [dart:io section of the library |
190 * [dart:io section of the library tour] | 190 * tour](https://www.dartlang.org/docs/dart-up-and-running/ch03.html#dartio---io
-for-command-line-apps). |
191 * (https://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#ch03-da
rtio---file-and-socket-io-for-command-line-apps). | |
192 * | 191 * |
193 * To learn more about I/O in Dart, refer to the | 192 * To learn more about I/O in Dart, refer to the [tutorial about writing |
194 * [tutorial about writing command-line apps] | 193 * command-line apps](https://www.dartlang.org/docs/tutorials/io/). |
195 * (https://www.dartlang.org/docs/tutorials/io/). | |
196 */ | 194 */ |
197 library dart.io; | 195 library dart.io; |
198 | 196 |
199 import 'dart:async'; | 197 import 'dart:async'; |
200 import 'dart:_internal'; | 198 import 'dart:_internal'; |
201 import 'dart:collection' show HashMap, | 199 import 'dart:collection' show HashMap, |
202 HashSet, | 200 HashSet, |
203 Queue, | 201 Queue, |
204 ListQueue, | 202 ListQueue, |
205 LinkedList, | 203 LinkedList, |
(...skipping 30 matching lines...) Expand all Loading... |
236 part 'process.dart'; | 234 part 'process.dart'; |
237 part 'secure_server_socket.dart'; | 235 part 'secure_server_socket.dart'; |
238 part 'secure_socket.dart'; | 236 part 'secure_socket.dart'; |
239 part 'security_context.dart'; | 237 part 'security_context.dart'; |
240 part 'service_object.dart'; | 238 part 'service_object.dart'; |
241 part 'socket.dart'; | 239 part 'socket.dart'; |
242 part 'stdio.dart'; | 240 part 'stdio.dart'; |
243 part 'string_transformer.dart'; | 241 part 'string_transformer.dart'; |
244 part 'websocket.dart'; | 242 part 'websocket.dart'; |
245 part 'websocket_impl.dart'; | 243 part 'websocket_impl.dart'; |
OLD | NEW |