kantan.csv

CsvInput

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
Learn more about member selection
Visibility
  1. Public
  2. All

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. def apply[A](f: (A) ⇒ ParseResult[Reader]): CsvInput[A]

    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

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

    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]]
  8. final def asInstanceOf[T0]: T0

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

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

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

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

  11. def clone(): AnyRef

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

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

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

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

  15. def finalize(): Unit

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

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

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

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

  19. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Turns any path into a source of CSV data.

  24. implicit def reader: CsvInput[Reader]

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

  25. implicit val string: CsvInput[String]

    Turns any string into a source of CSV data.

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

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

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from LowPriorityCsvInputs

Inherited from AnyRef

Inherited from Any

Ungrouped