Packages

final case class IttoCSVFormat(delimeter: Char, quote: Char, recordSeparator: String, quoteEmpty: Boolean, forceQuote: Boolean, printHeader: Boolean, trim: Boolean, ignoreEmptyLines: Boolean, quoteLowerChar: Boolean) extends Product with Serializable

The formatter determines how CSV will be generated, two formatters are available:

Method

Description

Default Formatter

Tab formatter

withDelimiter(c: Char)

the separator between fields

,

\t

withQuote(c: Char)

the quoteChar character

"

"

withQuoteEmpty(c: Boolean)

quotes field if empty

false

false

withForceQuote(c: Boolean)

quotes all fields

false

false

withPrintHeader(c: Boolean)

if true prints the header

false

false

withTrim(c: Boolean)

trims the field

false

false

withRecordSeparator(c: String)

the rows separator

\r\n

\r\n

it's possible to create custom foramtters editing the default ones, example:

implicit val newFormatter = default.withForceQuote(true).withRecordSeparator("\n").with.....
delimeter

the separator between fields

quote

the quoteChar character

recordSeparator

the record separator

quoteEmpty

if true quotes the empty field

forceQuote

if true quotes all fields

printHeader

if true prints the header

trim

if true trims the fields

ignoreEmptyLines

if true skip empty lines

quoteLowerChar

if true quotes lower chars

Since

0.0.1

See also

See test code for more information

See https://github.com/gekomad/itto-csv/blob/master/README.md for more information.

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

Instance Constructors

  1. new IttoCSVFormat(delimeter: Char, quote: Char, recordSeparator: String, quoteEmpty: Boolean, forceQuote: Boolean, printHeader: Boolean, trim: Boolean, ignoreEmptyLines: Boolean, quoteLowerChar: Boolean)

    delimeter

    the separator between fields

    quote

    the quoteChar character

    recordSeparator

    the record separator

    quoteEmpty

    if true quotes the empty field

    forceQuote

    if true quotes all fields

    printHeader

    if true prints the header

    trim

    if true trims the fields

    ignoreEmptyLines

    if true skip empty lines

    quoteLowerChar

    if true quotes lower chars

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. val delimeter: Char
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. val forceQuote: Boolean
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. val ignoreEmptyLines: Boolean
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. val printHeader: Boolean
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. val quote: Char
  19. val quoteEmpty: Boolean
  20. val quoteLowerChar: Boolean
  21. val recordSeparator: String
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. val trim: Boolean
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. def withDelimiter(c: Char): IttoCSVFormat
  28. def withForceQuote(c: Boolean): IttoCSVFormat
  29. def withIgnoreEmptyLines(c: Boolean): IttoCSVFormat
  30. def withPrintHeader(c: Boolean): IttoCSVFormat
  31. def withQuote(c: Char): IttoCSVFormat
  32. def withQuoteEmpty(c: Boolean): IttoCSVFormat
  33. def withQuoteLowerChar(c: Boolean): IttoCSVFormat
  34. def withRecordSeparator(c: String): IttoCSVFormat
  35. def withTrim(c: Boolean): IttoCSVFormat

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped