final case class CsvConfiguration(cellSeparator: Char, quote: Char, quotePolicy: QuotePolicy, header: Header) extends Product with Serializable
Configuration for how to read / write CSV data.
Note that all engines don't necessarily support all features.
- Source
- CsvConfiguration.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CsvConfiguration
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CsvConfiguration(cellSeparator: Char, quote: Char, quotePolicy: QuotePolicy, header: Header)
Value Members
- val cellSeparator: Char
- def hasHeader: Boolean
Checks whether this configuration has a header, either for reading or writing.
- val header: Header
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val quote: Char
- def quoteAll: CsvConfiguration
Quote all cells, whether they need it or not.
- val quotePolicy: QuotePolicy
- def quoteWhenNeeded: CsvConfiguration
Quote only cells that need it.
- def withCellSeparator(char: Char): CsvConfiguration
Use the specified character for cell separator.
- def withHeader: CsvConfiguration
Expect a header when reading, do not use one when writing.
- def withHeader(flag: Boolean): CsvConfiguration
If
flag
istrue
, expect a header when reading.If
flag
istrue
, expect a header when reading. Otherwise, don't. - def withHeader(ss: String*): CsvConfiguration
Expect a header when reading, use the specified sequence when writing.
- def withHeader(header: Header): CsvConfiguration
Use the specified header configuration.
- def withQuote(char: Char): CsvConfiguration
Use the specified quote character.
- def withQuotePolicy(policy: QuotePolicy): CsvConfiguration
Use the specified quoting policy.
- def withoutHeader: CsvConfiguration
Do not use a header, either when reading or writing.