Index: sdk/lib/convert/converter.dart |
diff --git a/sdk/lib/convert/converter.dart b/sdk/lib/convert/converter.dart |
index d6d9a9b78bf2f83d29925a8a7f13d9cbd826d8d5..627e4173559a13175b8edbf7c7c2e0a2f02d635d 100644 |
--- a/sdk/lib/convert/converter.dart |
+++ b/sdk/lib/convert/converter.dart |
@@ -29,22 +29,14 @@ abstract class Converter<S, T> implements StreamTransformer { |
} |
/** |
- * Deprecated. |
- * |
- * Use the [ChunkedConverter] interface instead. |
+ * Starts a chunked conversion. |
*/ |
- @deprecated |
ChunkedConversionSink startChunkedConversion(Sink sink) { |
throw new UnsupportedError( |
"This converter does not support chunked conversions: $this"); |
} |
- /** |
- * Deprecated. |
- * |
- * Use the [ChunkedConverter] interface instead. |
- */ |
- @deprecated |
+ // Subclasses are encouraged to provide better types. |
Stream bind(Stream stream) { |
return new Stream.eventTransformed( |
stream, |
@@ -58,10 +50,14 @@ abstract class Converter<S, T> implements StreamTransformer { |
* For a non-chunked conversion converts the input in sequence. |
*/ |
class _FusedConverter<S, M, T> extends Converter<S, T> { |
- final Converter<S, M> _first; |
- final Converter<M, T> _second; |
+ final Converter _first; |
+ final Converter _second; |
_FusedConverter(this._first, this._second); |
T convert(S input) => _second.convert(_first.convert(input)); |
+ |
+ ChunkedConversionSink startChunkedConversion(Sink sink) { |
+ return _first.startChunkedConversion(_second.startChunkedConversion(sink)); |
+ } |
} |