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

Unified Diff: sdk/lib/io/string_transformer.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/io/data_transformer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/string_transformer.dart
diff --git a/sdk/lib/io/string_transformer.dart b/sdk/lib/io/string_transformer.dart
index af3cce789e12cbcc30652753190e360d831691d5..423a61c39d9da07d26e909d3989d570cfcfed1d3 100644
--- a/sdk/lib/io/string_transformer.dart
+++ b/sdk/lib/io/string_transformer.dart
@@ -51,8 +51,7 @@ class _WindowsCodePageEncoder extends Converter<String, List<int>> {
/**
* Starts a chunked conversion.
*/
- StringConversionSink startChunkedConversion(
- ChunkedConversionSink<List<int>> sink) {
+ StringConversionSink startChunkedConversion(Sink<List<int>> sink) {
return new _WindowsCodePageEncoderSink(sink);
}
@@ -66,7 +65,7 @@ class _WindowsCodePageEncoderSink extends StringConversionSinkBase {
// TODO(floitsch): provide more efficient conversions when the input is
// not a String.
- final ChunkedConversionSink<List<int>> _sink;
+ final Sink<List<int>> _sink;
_WindowsCodePageEncoderSink(this._sink);
@@ -103,8 +102,7 @@ class _WindowsCodePageDecoder extends Converter<List<int>, String> {
/**
* Starts a chunked conversion.
*/
- ByteConversionSink startChunkedConversion(
- ChunkedConversionSink<String> sink) {
+ ByteConversionSink startChunkedConversion(Sink<String> sink) {
return new _WindowsCodePageDecoderSink(sink);
}
@@ -118,7 +116,7 @@ class _WindowsCodePageDecoderSink extends ByteConversionSinkBase {
// TODO(floitsch): provide more efficient conversions when the input is
// a slice.
- final ChunkedConversionSink<String> _sink;
+ final Sink<String> _sink;
_WindowsCodePageDecoderSink(this._sink);
« no previous file with comments | « sdk/lib/io/data_transformer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698