Turns a CsvSink[S] into a CsvSink[T].
Turns a CsvSink[S] into a CsvSink[T].
This allows developers to adapt existing instances of CsvSink rather than write one from scratch.
One could, for example, write CsvSource[File] by basing it on CsvSource[OutputStream]:
def fileOutput(implicit c: scala.io.Codec): CsvSink[File] = CsvSink[OutputStream].contramap(f ⇒ new FileOutputStream(f, c.charSet))
Writes the specified collections directly in the specifie S.
Writes the specified collections directly in the specifie S.
where to write the CSV data.
CSV data to encode and serialise.
CSV writing behaviour.
Opens a CsvWriter on the specified S.
(Since version 0.1.18) use write(S, TraversableOnce[A], CsvConfiguration) instead
(Since version 0.1.18) use writer(S, CsvConfiguration) instead
Type class for all types that can be turned into CsvWriter instances.
Instances of CsvSink are rarely used directly. The preferred, idiomatic way is to use the implicit syntax provided by CsvSinkOps, brought in scope by importing
kantan.csv.ops._.See the companion object for default implementations and construction methods.