dart / 1.24.3 / dart-io / iosink / iosink.html /

IOSink factory constructor

IOSink( StreamConsumer< List< int>> target, { Encoding encoding: UTF8 })

Create an IOSink that outputs to a target StreamConsumer of bytes.

Text written to StreamSink methods is encoded to bytes using encoding before being output on target.

Source

factory IOSink(StreamConsumer<List<int>> target, {Encoding encoding: UTF8}) =>
    new _IOSinkImpl(target, encoding);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/IOSink/IOSink.html