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

Unified Diff: sdk/lib/io/data_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/core/sink.dart ('k') | sdk/lib/io/string_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/data_transformer.dart
diff --git a/sdk/lib/io/data_transformer.dart b/sdk/lib/io/data_transformer.dart
index 378253f301c4ca072a2aeb14057d023315843165..a7454601dcb096f24b9c0b1f25d04fa08d5b0c9c 100644
--- a/sdk/lib/io/data_transformer.dart
+++ b/sdk/lib/io/data_transformer.dart
@@ -362,16 +362,13 @@ class ZLibEncoder extends Converter<List<int>, List<int>> {
/**
* Start a chunked conversion using the options given to the [ZLibEncoder]
- * constructor. While it accepts any [ChunkedConversionSink] taking
- * [List<int>]'s, the optimal sink to be passed as [sink] is a
- * [ByteConversionSink].
+ * constructor. While it accepts any [Sink] taking [List<int>]'s,
+ * the optimal sink to be passed as [sink] is a [ByteConversionSink].
*/
- ByteConversionSink startChunkedConversion(
- ChunkedConversionSink<List<int>> sink) {
+ ByteConversionSink startChunkedConversion(Sink<List<int>> sink) {
if (sink is! ByteConversionSink) {
sink = new ByteConversionSink.from(sink);
}
-
return new _ZLibEncoderSink(sink, gzip, level, windowBits, memLevel,
strategy, dictionary, raw);
}
@@ -423,12 +420,11 @@ class ZLibDecoder extends Converter<List<int>, List<int>> {
}
/**
- * Start a chunked conversion. While it accepts any [ChunkedConversionSink]
+ * Start a chunked conversion. While it accepts any [Sink]
* taking [List<int>]'s, the optimal sink to be passed as [sink] is a
* [ByteConversionSink].
*/
- ByteConversionSink startChunkedConversion(
- ChunkedConversionSink<List<int>> sink) {
+ ByteConversionSink startChunkedConversion(Sink<List<int>> sink) {
if (sink is! ByteConversionSink) {
sink = new ByteConversionSink.from(sink);
}
« no previous file with comments | « sdk/lib/core/sink.dart ('k') | sdk/lib/io/string_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698