kantan.csv

CsvOutput

trait CsvOutput[-S] extends Serializable

Type class for all types that can be turned into CsvWriter instances.

Instances of CsvOutput are rarely used directly. The preferred, idiomatic way is to use the implicit syntax provided by CsvOutputOps, brought in scope by importing kantan.csv.ops._.

See the companion object for default implementations and construction methods.

Self Type
CsvOutput[S]
Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CsvOutput
  2. Serializable
  3. AnyRef
  4. 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): Writer

    Opens a Writer on the specified S.

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): CsvOutput[T]

    Turns a CsvOutput[S] into a CsvOutput[T].

    Turns a CsvOutput[S] into a CsvOutput[T].

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

    def fileOutput(implicit c: scala.io.Codec): CsvOutput[File] =
    CsvOutput[OutputStream].contramap(f ¬ヌメ new FileOutputStream(f, c.charSet))
  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. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def write[A](s: S, rows: TraversableOnce[A], sep: Char, header: Seq[String] = Seq.empty)(implicit arg0: RowEncoder[A], e: WriterEngine): Unit

    Writes the specified collections directly in the specifie S.

    Writes the specified collections directly in the specifie S.

    s

    where to write the CSV data.

    rows

    CSV data to encode and serialise.

    sep

    column separator.

    header

    optional header row, defaults to none.

  24. def writer[A](s: S, sep: Char, header: Seq[String] = Seq.empty)(implicit arg0: RowEncoder[A], e: WriterEngine): CsvWriter[A]

    Opens a CsvWriter on the specified S.

    Opens a CsvWriter on the specified S.

    s

    what to open a CsvWriter on.

    sep

    column separator.

    header

    optional header row, defaults to none.

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped