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

Unified Diff: sdk/lib/convert/utf.dart

Issue 203603008: Introduce class Sink<T>. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 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 | « sdk/lib/convert/string_conversion.dart ('k') | sdk/lib/core/core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/utf.dart
diff --git a/sdk/lib/convert/utf.dart b/sdk/lib/convert/utf.dart
index 2f513b05ccc8fcabf11e53e2f22177a4fe4883ce..819013913540a3e403d1cfee98bb9c78ec03419c 100644
--- a/sdk/lib/convert/utf.dart
+++ b/sdk/lib/convert/utf.dart
@@ -107,8 +107,7 @@ class Utf8Encoder extends Converter<String, List<int>> {
* The converter works more efficiently if the given [sink] is a
* [ByteConversionSink].
*/
- StringConversionSink startChunkedConversion(
- ChunkedConversionSink<List<int>> sink) {
+ StringConversionSink startChunkedConversion(Sink<List<int>> sink) {
if (sink is! ByteConversionSink) {
sink = new ByteConversionSink.from(sink);
}
@@ -332,8 +331,7 @@ class Utf8Decoder extends Converter<List<int>, String> {
* The converter works more efficiently if the given [sink] is a
* [StringConversionSink].
*/
- ByteConversionSink startChunkedConversion(
- ChunkedConversionSink<String> sink) {
+ ByteConversionSink startChunkedConversion(Sink<String> sink) {
StringConversionSink stringSink;
if (sink is StringConversionSink) {
stringSink = sink;
« no previous file with comments | « sdk/lib/convert/string_conversion.dart ('k') | sdk/lib/core/core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698