package parser
- Alphabetic
- Public
- All
Type Members
- 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:
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.
Value Members
- object Constants
- Since
0.0.1
- object CsvFieldToString
Trasforms a single CSV field to string
Trasforms a single CSV field to string
- 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.
- object IttoCSVFormat extends Serializable
- object StringToCsvField
Trasforms a string to CSV field
Trasforms a string to CSV field
- 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