kotlin-csv icon indicating copy to clipboard operation
kotlin-csv copied to clipboard

Make common ancestor for CsvReaderContext and CsvWriterContext

Open SPC-code opened this issue 1 year ago • 0 comments
trafficstars

It is required to create a common reading and writing rules. For example, TSV rule could look like this:

val TSV: CsvContext.()->Unit = {
    charset = "ISO_8859_1"
    quoteChar = '"'
    delimiter = '\t'
    escapeChar = '\\'
}

It could be used as:

csvReader(TSV)

SPC-code avatar Feb 04 '24 17:02 SPC-code