contentToCsv

fun Table.contentToCsv(delimiter: Char = ',', quoteChar: Char = '"', escapeChar: Char? = null, doubleQuote: Boolean = false, lineTerminator: String = "", quoting: CsvQuoting = CsvQuoting.MINIMAL): String

Parameters

delimiter

The character used to separate fields

quoteChar

The character used to surround fields that contain any of the special characters: delimiter, quoteChar, or lineTerminator

escapeChar

The character placed before special characters when quoting is NONE or doubleQuote is false

doubleQuote

If true, occurrences of quoteChar inside a quoted field will be doubled. If false, they will be prefixed by escapeChar, or an IllegalArgumentException will be thrown if escapeChar is null.

lineTerminator

The character used to terminate lines

quoting

The quoting method to use