c

kantan.csv.ops

CsvSinkOps

final class CsvSinkOps[A] extends VersionSpecificCsvSinkOps[A]

Provides useful syntax for types that have implicit instances of CsvSink in scope.

The most common use case is to turn a value into a CsvWriter:

val f: java.io.File = ???
f.asCsvWriter[List[Int]](',', true)

A slightly less common use case is encode an entire collection to CSV:

val f: java.io.File = ???
f.writeCsv[List[Int]](List(List(1, 2, 3), List(4, 5, 6)), ',', true)
Source
CsvSinkOps.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CsvSinkOps
  2. VersionSpecificCsvSinkOps
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CsvSinkOps(a: A)(implicit arg0: CsvSink[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val a: A
  5. def asCsvWriter[B](conf: CsvConfiguration)(implicit arg0: HeaderEncoder[B], e: WriterEngine): CsvWriter[B]

    Shorthand for CsvSink.writer.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. def writeCsv[B](rows: IterableOnce[B], conf: CsvConfiguration)(implicit arg0: HeaderEncoder[B], e: WriterEngine, sa: CsvSink[A]): Unit
    Definition Classes
    VersionSpecificCsvSinkOps

Deprecated Value Members

  1. def asCsvWriter[B](sep: Char, header: String*)(implicit arg0: HeaderEncoder[B], e: WriterEngine): CsvWriter[B]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.1.18) use asCsvWriter(CsvConfiguration) instead

  2. def writeCsv[B](rows: IterableOnce[B], sep: Char, header: String*)(implicit arg0: HeaderEncoder[B], e: WriterEngine, sa: CsvSink[A]): Unit
    Definition Classes
    VersionSpecificCsvSinkOps
    Annotations
    @deprecated
    Deprecated

    (Since version 0.1.18) use writeCsv(rows, CsvConfiguration) instead

Inherited from VersionSpecificCsvSinkOps[A]

Inherited from AnyRef

Inherited from Any

Ungrouped