Turns a CsvOutput[S]
into a CsvOutput[T]
.
Turns a CsvOutput[S]
into a CsvOutput[T]
.
This allows developers to adapt existing instances of CsvOutput rather than write one from scratch.
One could, for example, write CsvInput[File]
by basing it on CsvInput[OutputStream]
:
def fileOutput(implicit c: scala.io.Codec): CsvOutput[File] = CsvOutput[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.
column separator.
optional header row, defaults to none.
Opens a CsvWriter on the specified S
.
Type class for all types that can be turned into CsvWriter instances.
Instances of CsvOutput are rarely used directly. The preferred, idiomatic way is to use the implicit syntax provided by CsvOutputOps, brought in scope by importing
kantan.csv.ops._
.See the companion object for default implementations and construction methods.