kantan.csv.ops

CsvSinkOps

final class CsvSinkOps[A] extends AnyVal

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

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

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

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

val f: java.io.File = ???
f.writeCsv[List[Int]](List(List(1, 2, 3), List(4, 5, 6)), ',', true)
Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CsvSinkOps
  2. AnyVal
  3. NotNull
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CsvSinkOps(a: A)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. val a: A

  5. def asCsvWriter[B](sep: Char, header: Seq[String] = Seq.empty)(implicit arg0: RowEncoder[B], oa: CsvSink[A], e: WriterEngine): CsvWriter[B]

    Shorthand for CsvSink.writer.

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  9. def toString(): String

    Definition Classes
    Any
  10. def writeCsv[B](rows: TraversableOnce[B], sep: Char, header: Seq[String] = Seq.empty)(implicit arg0: RowEncoder[B], oa: CsvSink[A], e: WriterEngine): Unit

    Shorthand for CsvSink.write.

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped