OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "io.dart"; | 5 part of "dart:io"; |
6 | 6 |
7 /** | 7 /** |
8 * A combined byte and text output. | 8 * A combined byte and text output. |
9 * | 9 * |
10 * An [IOSink] combines a [StreamSink] of bytes with a [StringSink], | 10 * An [IOSink] combines a [StreamSink] of bytes with a [StringSink], |
11 * and allows easy output of both bytes and text. | 11 * and allows easy output of both bytes and text. |
12 * | 12 * |
13 * Writing text ([write]) and adding bytes ([add]) may be interleaved freely. | 13 * Writing text ([write]) and adding bytes ([add]) may be interleaved freely. |
14 * | 14 * |
15 * While a stream is being added using [addStream], any further attempts | 15 * While a stream is being added using [addStream], any further attempts |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 320 |
321 void writeln([Object object = ""]) { | 321 void writeln([Object object = ""]) { |
322 write(object); | 322 write(object); |
323 write("\n"); | 323 write("\n"); |
324 } | 324 } |
325 | 325 |
326 void writeCharCode(int charCode) { | 326 void writeCharCode(int charCode) { |
327 write(new String.fromCharCode(charCode)); | 327 write(new String.fromCharCode(charCode)); |
328 } | 328 } |
329 } | 329 } |
OLD | NEW |