startChunkedConversion method

ByteConversionSink startChunkedConversion (Sink<String> sink)
override

Starts a chunked conversion.

The returned sink serves as input for the long-running conversion. The given sink serves as output.

Implementation

ByteConversionSink startChunkedConversion(Sink<String> sink) {
  if (sink is StringConversionSink) {
    return _Utf8Base64EncoderSink(sink.asUtf8Sink(false), _urlSafe);
  }
  return _AsciiBase64EncoderSink(sink, _urlSafe);
}