mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:40:07 +00:00
f914fef7bb
R=efortuna@google.com Review URL: https://codereview.chromium.org//131793004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31698 260f80e4-7a28-3924-810f-c04153c831b5
33 lines
888 B
Dart
33 lines
888 B
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
part of dart.core;
|
|
|
|
abstract class StringSink {
|
|
|
|
/**
|
|
* Converts [obj] to a String by invoking [Object.toString] and
|
|
* adds the result to `this`.
|
|
*/
|
|
void write(Object obj);
|
|
|
|
/**
|
|
* Iterates over the given [objects] and [write]s them in sequence.
|
|
*/
|
|
void writeAll(Iterable objects, [String separator = ""]);
|
|
|
|
/**
|
|
* Converts [obj] to a String by invoking [Object.toString] and
|
|
* adds the result to `this`, followed by a newline.
|
|
*/
|
|
void writeln([Object obj = ""]);
|
|
|
|
/**
|
|
* Writes the [charCode] to `this`.
|
|
*
|
|
* This method is equivalent to `write(new String.fromCharCode(charCode))`.
|
|
*/
|
|
void writeCharCode(int charCode);
|
|
}
|