|
Add writeString method to OutputStream
All output streams now supports writeString which takes the encoding
to be used when transforming the string into a sequence of bytes.
This change also introduces an Encoding interface and Encodings class
as a repository for the supported encodings. Currently this is only
UTF-8, ISO-8859-1 and ASCII. All methods in dart:io which previously
used a String to represent the encoding now uses objects implementing
Encoding.
In this change dart:io is still using the internal UTF-8 encoder used
by the HTTP implementation. I will look into using the one in dart:utf
in a separate change.
R=ager@google.com
BUG=
TEST=
Committed: https://code.google.com/p/dart/source/detail?r=5231
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+319 lines, -210 lines) |
Patch |
|
M |
runtime/bin/file.dart
|
View
|
1
|
2 chunks |
+21 lines, -20 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_impl.dart
|
View
|
1
|
7 chunks |
+11 lines, -22 lines |
0 comments
|
Download
|
|
M |
runtime/bin/http.dart
|
View
|
1
2
|
2 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
|
M |
runtime/bin/http_impl.dart
|
View
|
1
2
|
5 chunks |
+1 line, -70 lines |
0 comments
|
Download
|
|
M |
runtime/bin/input_stream.dart
|
View
|
1
|
3 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
|
M |
runtime/bin/list_stream_impl.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/output_stream.dart
|
View
|
1
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/socket_stream_impl.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/bin/stream_util.dart
|
View
|
1
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/string_stream.dart
|
View
|
1
|
5 chunks |
+158 lines, -43 lines |
0 comments
|
Download
|
|
M |
samples/chat/chat_server_lib.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
samples/chat/chat_stress_client.dart
|
View
|
|
4 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/chat/ChatServerTest.dart
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/io/FileTest.dart
|
View
|
1
|
6 chunks |
+34 lines, -9 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/io/HttpShutdownTest.dart
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/io/HttpTest.dart
|
View
|
|
5 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/io/ListOutputStreamTest.dart
|
View
|
1
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/io/StringStreamTest.dart
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|