Package

org.emmalanguage.io

csv

Permalink

package csv

Visibility
  1. Public
  2. All

Type Members

  1. case class CSV(header: Boolean = defaultHeader, delimiter: Char = defaultDelimiter, delimitSeq: Char = defaultDelimitSeq, charset: String = defaultCharset, quote: Option[Char] = defaultQuote, escape: Option[Char] = defaultEscape, comment: Option[Char] = defaultComment, nullValue: String = defaultNullValue, skipRows: Int = defaultSkipRows) extends Format with Product with Serializable

    Permalink

    CSV format configuration.

    CSV format configuration.

    header

    Indicate the presence of a CSV header (to be ignored when reading).

    delimiter

    Column delimiter character.

    delimitSeq

    Sequence delimiter character (used by CSV converters for collections).

    charset

    Character set.

    quote

    Delimiters inside quotes are ignored.

    escape

    Escaped characters are always treated as data.

    comment

    Lines starting with a comment character are ignored.

    nullValue

    Fields matching this string will be set to null.

    skipRows

    Skip a number of rows starting at the beginning of the file.

  2. trait CSVColumn[T] extends Serializable

    Permalink

    Codec (provides encoding and decoding) type-class for CSV columns.

    Codec (provides encoding and decoding) type-class for CSV columns. A CSV column is an opaque value within a CSV record, encoded as a String. E.g. a CSV record of only one column would need no column delimiter.

    This codec is unsafe. Upon failure (mostly when decoding), an exception may be thrown. A very common exception type is NumberFormatException.

    Usually CSV column codecs are provided for types that can be encoded as and decoded from a String, but cannot be broken down to a fixed number of fields. Otherwise CSVConverter is better suited. Instances provided by default are Scala and Java primitives, enumerations and Option.

  3. trait CSVConverter[T] extends Serializable

    Permalink

    Codec (provides encoding and decoding) type-class for CSV records.

    Codec (provides encoding and decoding) type-class for CSV records. A CSV record consists of a fixed number of columns, encoded as an array of Strings.

    This codec is unsafe. Upon failure (mostly when reading), an exception may be thrown. A very common exception type is NumberFormatException.

    Provided by default are codecs for Scala and Java primitives, enumerations, Option, Array, Traversable collections, tuples and case classes.

  4. class CSVScalaSupport[A] extends ScalaSupport[A, CSV]

    Permalink

    A ScalaSupport implementation for the CSV io.Format.

  5. trait IsoCSVColumns extends AnyRef

    Permalink

Value Members

  1. object CSV extends Serializable

    Permalink
  2. object CSVColumn extends IsoCSVColumns with Serializable

    Permalink

    Factory methods and implicit instances of CSV column codecs.

  3. object CSVConverter extends Serializable

    Permalink

    Factory methods and implicit instances of CSV converters.

  4. object CSVScalaSupport

    Permalink

    Companion object.

Ungrouped