kantan.csv.ops

CsvSourceOps

final class CsvSourceOps[A] extends AnyVal

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

The most common use case is to turn a value into a CsvReader through asCsvReader:

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

A slightly less common use case is to load an entire CSV file in memory through readCsv:

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

Unsafe versions of these methods are also available, even if usually advised against.

Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CsvSourceOps
  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 CsvSourceOps(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 asCsvReader[B](sep: Char, header: Boolean)(implicit arg0: RowDecoder[B], ia: CsvSource[A], e: ReaderEngine): CsvReader[ReadResult[B]]

    Shorthand for CsvSource.reader.

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def asUnsafeCsvReader[B](sep: Char, header: Boolean)(implicit arg0: RowDecoder[B], ia: CsvSource[A], e: ReaderEngine): CsvReader[B]

    Shorthand for CsvSource.unsafeReader.

  8. def getClass(): Class[_ <: AnyVal]

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

    Definition Classes
    Any
  10. def readCsv[C[_], B](sep: Char, header: Boolean)(implicit arg0: RowDecoder[B], ia: CsvSource[A], e: ReaderEngine, cbf: CanBuildFrom[Nothing, ReadResult[B], C[ReadResult[B]]]): C[ReadResult[B]]

    Shorthand for CsvSource.read.

  11. def toString(): String

    Definition Classes
    Any
  12. def unsafeReadCsv[C[_], B](sep: Char, header: Boolean)(implicit arg0: RowDecoder[B], ia: CsvSource[A], e: ReaderEngine, cbf: CanBuildFrom[Nothing, B, C[B]]): C[B]

    Shorthand for CsvSource.unsafeRead.

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped