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

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

Issue 20374003: Add transformer support to Converters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Upload Created 7 years, 5 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/json.dart ('k') | tests/lib/convert/chunked_conversion2_test.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 e9a4aa894537432c2a693c1b46210370d0d8b316..2f92ef4dfc1ccd5afb3f773c91400dfee7da1640 100644
--- a/sdk/lib/convert/utf.dart
+++ b/sdk/lib/convert/utf.dart
@@ -100,6 +100,9 @@ class Utf8Encoder extends Converter<String, List<int>> {
}
return new _Utf8EncoderSink(sink);
}
+
+ // Override the base-classes bind, to provide a better type.
+ Stream<List<int>> bind(Stream<String> stream) => super.bind(stream);
}
/**
@@ -317,6 +320,9 @@ class Utf8Decoder extends Converter<List<int>, String> {
}
return stringSink.asUtf8Sink(_allowMalformed);
}
+
+ // Override the base-classes bind, to provide a better type.
+ Stream<String> bind(Stream<List<int>> stream) => super.bind(stream);
}
// UTF-8 constants.
« no previous file with comments | « sdk/lib/convert/json.dart ('k') | tests/lib/convert/chunked_conversion2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698