trait CsvSink[-S] extends VersionSpecificCsvSink[S] with Serializable
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.
- Self Type
- CsvSink[S]
- Source
- CsvSink.scala
- Alphabetic
- By Inheritance
- CsvSink
- Serializable
- VersionSpecificCsvSink
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contramap[T](f: (T) => S): CsvSink[T]
Turns a
CsvSink[S]
into aCsvSink[T]
.Turns a
CsvSink[S]
into aCsvSink[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 onCsvSource[OutputStream]
:def fileOutput(implicit c: scala.io.Codec): CsvSink[File] = CsvSink[OutputStream].contramap(f ⇒ new FileOutputStream(f, c.charSet))
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def write[A](s: S, rows: IterableOnce[A], conf: CsvConfiguration)(implicit arg0: HeaderEncoder[A], e: WriterEngine): Unit
Writes the specified collections directly in the specifie
S
.Writes the specified collections directly in the specifie
S
.- s
where to write the CSV data.
- rows
CSV data to encode and serialize.
- conf
CSV writing behaviour.
- Definition Classes
- VersionSpecificCsvSink
- def writer[A](s: S, conf: CsvConfiguration)(implicit arg0: HeaderEncoder[A], e: WriterEngine): CsvWriter[A]
Opens a CsvWriter on the specified
S
.
Deprecated Value Members
- def write[A](s: S, rows: IterableOnce[A], sep: Char, header: String*)(implicit arg0: HeaderEncoder[A], e: WriterEngine): Unit
- Definition Classes
- VersionSpecificCsvSink
- Annotations
- @deprecated
- Deprecated
(Since version 0.1.18) use write(S, TraversableOnce[A], CsvConfiguration) instead
- def writer[A](s: S, sep: Char, header: String*)(implicit arg0: HeaderEncoder[A], e: WriterEngine): CsvWriter[A]
- Annotations
- @deprecated
- Deprecated
(Since version 0.1.18) use writer(S, CsvConfiguration) instead