tabulate

CsvInput

trait CsvInput[S] extends AnyRef

Turns instances of S into valid sources of CSV data.

Any type S that has a implicit instance of CsvInput in scope will be enriched by the asCsvReader and asUnsafeCsvReader methods (which map to reader and unsafeReader respectively).

See the companion object for default implementations and construction methods.

Self Type
CsvInput[S]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CsvInput
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def open(s: S): Reader

    Turns the specified S into a Reader.

    Turns the specified S into a Reader.

    Other methods in this trait all rely on this to open and parse CSV data.

    Annotations
    @noop()

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

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

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def contramap[T](f: (T) ⇒ S): CsvInput[T]

    Turns an instance of CsvInput[S] into one of CsvInput[T].

    Turns an instance of CsvInput[S] into one of CsvInput[T].

    This allows developers to adapt existing instances of CsvInput rather than write one from scratch. One could, for example, write CsvInput[URL] by basing it on CsvInput[InputStream]:

    val urlInput: CsvInput[URL] = CsvInput[InputStream].contramap((url: URL) => url.openStream())
    Annotations
    @noop()
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def read[C[_], A](s: S, sep: Char, header: Boolean)(implicit arg0: RowDecoder[A], e: ReaderEngine, cbf: CanBuildFrom[Nothing, DecodeResult[A], C[DecodeResult[A]]]): C[DecodeResult[A]]

  19. def reader[A](s: S, separator: Char, header: Boolean)(implicit arg0: RowDecoder[A], engine: ReaderEngine): CsvReader[DecodeResult[A]]

    Turns the specified S into an iterator on DecodeResult[A].

    Turns the specified S into an iterator on DecodeResult[A].

    This method is "safe", in that it does not throw exceptions when errors are encountered. This comes with the small cost of having each row wrapped in a DecodeResult that then need to be unpacked. See unsafeReader for an alternative.

    This method is also mapped to the asCsvRows one that enrich all types that have a valid CsvInput instance in scope. For example:

    implicit val strInput: CsvInput[String] = ???
    "a,b,c".asCsvRows[List[Char]](',', false)
    A

    type to parse each row as.

    Annotations
    @op( "asCsvReader" , simulacrum.this.op.<init>$default$2 )
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. def unsafeRead[C[_], A](s: S, sep: Char, header: Boolean)(implicit arg0: RowDecoder[A], e: ReaderEngine, cbf: CanBuildFrom[Nothing, A, C[A]]): C[A]

  23. def unsafeReader[A](s: S, separator: Char, header: Boolean)(implicit arg0: RowDecoder[A], engine: ReaderEngine): CsvReader[A]

    Turns the specified S into an iterator on A.

    Turns the specified S into an iterator on A.

    This is the "unsafe" version of reader: it will throw as soon as an error is encountered.

    A

    type to parse each row as.

    Annotations
    @op( "asUnsafeCsvReader" , simulacrum.this.op.<init>$default$2 )
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped