Trait/Object

kantan.csv

CsvOutput

Related Docs: object CsvOutput | package csv

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    Opens a Writer on the specified S.

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

    Permalink

    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))
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

    Permalink

    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.

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

    Permalink

    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