Object/Trait

kantan.csv

CsvInput

Related Docs: trait CsvInput | package csv

Permalink

object CsvInput extends LowPriorityCsvInputs with Serializable

Defines convenience methods for creating and retrieving instances of CsvInput.

Implicit default implementations of standard types are also declared here, always bringing them in scope with a low priority.

These default implementations can also be useful when writing more complex instances: if you need to write a CsvInput[T] and have both a CsvInput[S] and a T ⇒ S, you need just use CsvInput.contramap to create your implementation.

Linear Supertypes
Serializable, Serializable, LowPriorityCsvInputs, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CsvInput
  2. Serializable
  3. Serializable
  4. LowPriorityCsvInputs
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[A](f: (A) ⇒ ParseResult[Reader]): CsvInput[A]

    Permalink

    Turns the specified function into a CsvInput.

    Turns the specified function into a CsvInput.

    Note that it's usually better to compose an existing instance through CsvInput.contramap or CsvInput.contramapResult rather than create one from scratch. For example:

    val urlInput: CsvInput[URL] = CsvInput[InputStream].contramap((url: URL) ⇒ url.openStream())
    See also

    CsvInput.contramapResult

    CsvInput.contramap

  5. def apply[A](implicit ia: CsvInput[A]): CsvInput[A]

    Permalink

    Summons an implicit instance of CsvInput[A] if one can be found.

    Summons an implicit instance of CsvInput[A] if one can be found.

    This is simply a convenience method. The two following calls are equivalent:

    val str: CsvInput[String] = CsvInput[String]
    val str2: CsvInput[String] = implicitly[CsvInput[String]]
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. implicit def bytes(implicit codec: Codec): CsvInput[Array[Byte]]

    Permalink

    Turns any array of bytes into a source of CSV data.

  8. implicit val chars: CsvInput[Array[Char]]

    Permalink

    Turns any array of chars into a source of CSV data.

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. implicit def file(implicit codec: Codec): CsvInput[File]

    Permalink

    Turns any java.io.File into a source of CSV data.

  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. implicit def inputStream(implicit codec: Codec): CsvInput[InputStream]

    Permalink

    Turns any java.io.InputStream into a source of CSV data.

  17. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. implicit def path(implicit codec: Codec): CsvInput[Path]

    Permalink

    Turns any path into a source of CSV data.

  22. implicit def reader: CsvInput[Reader]

    Permalink

    Turns any java.io.Reader into a source of CSV data.

  23. implicit val string: CsvInput[String]

    Permalink

    Turns any string into a source of CSV data.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. implicit def uri(implicit codec: Codec): CsvInput[URI]

    Permalink

    Turns any java.net.URI into a source of CSV data.

  27. implicit def url(implicit codec: Codec): CsvInput[URL]

    Permalink

    Turns any java.net.URL into a source of CSV data.

  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from LowPriorityCsvInputs

Inherited from AnyRef

Inherited from Any

Ungrouped