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

Unified Diff: sdk/lib/convert/byte_conversion.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/ascii.dart ('k') | sdk/lib/convert/chunked_conversion.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/convert/byte_conversion.dart
diff --git a/sdk/lib/convert/byte_conversion.dart b/sdk/lib/convert/byte_conversion.dart
index 18da9d3a4e77a291374f2aa081ef1ae9b437b13a..bb94991fefc9aee9498a1c4aaf75fb80bc338152 100644
--- a/sdk/lib/convert/byte_conversion.dart
+++ b/sdk/lib/convert/byte_conversion.dart
@@ -19,7 +19,7 @@ abstract class ByteConversionSink extends ChunkedConversionSink<List<int>> {
ByteConversionSink();
factory ByteConversionSink.withCallback(void callback(List<int> accumulated))
= _ByteCallbackSink;
- factory ByteConversionSink.from(ChunkedConversionSink<List<int>> sink)
+ factory ByteConversionSink.from(Sink<List<int>> sink)
= _ByteAdapterSink;
/**
@@ -54,13 +54,13 @@ abstract class ByteConversionSinkBase extends ByteConversionSink {
}
/**
- * This class adapts a simple [ChunkedConversionSink] to a [ByteConversionSink].
+ * This class adapts a simple [Sink] to a [ByteConversionSink].
*
* All additional methods of the [ByteConversionSink] (compared to the
* ChunkedConversionSink) are redirected to the `add` method.
*/
class _ByteAdapterSink extends ByteConversionSinkBase {
- final ChunkedConversionSink<List<int>> _sink;
+ final Sink<List<int>> _sink;
_ByteAdapterSink(this._sink);
« no previous file with comments | « sdk/lib/convert/ascii.dart ('k') | sdk/lib/convert/chunked_conversion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698