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

Unified Diff: runtime/bin/output_stream.dart

Issue 9653026: Add writeString method to OutputStream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/list_stream_impl.dart ('k') | runtime/bin/socket_stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/output_stream.dart
diff --git a/runtime/bin/output_stream.dart b/runtime/bin/output_stream.dart
index 41743a84f4cb5d7f47d29ec1511ad16a55376397..7e5b9ffcb7cd2c20107c328b3ee7a7d2111ecc3f 100644
--- a/runtime/bin/output_stream.dart
+++ b/runtime/bin/output_stream.dart
@@ -41,6 +41,16 @@ interface OutputStream {
bool writeFrom(List<int> buffer, [int offset, int len]);
/**
+ * Write a string to the stream using the given [encoding].The
+ * default encoding is UTF-8 - [:Encoding.UTF_8:].
+ *
+ * Returns true if the data could be written to the underlying
+ * communication channel immediately. Otherwise the data is buffered
+ * by the output stream and will be sent as soon as possible.
+ */
+ bool writeString(String string, [Encoding encoding]);
+
+ /**
* Indicate that all data has been written to the output
* stream. When all data has been written to the communication
* channel it will be closed.
« no previous file with comments | « runtime/bin/list_stream_impl.dart ('k') | runtime/bin/socket_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698