kantan.csv.engine.commons

Provides CSV reader and writer engines using commons-csv.

Importing kantan.csv.engine.commons._ will replace default engines by the commons-backed ones. If you need to tweak how commons-csv behaves, however, you can handcraft engines though readerEngineFrom and writerEngineFrom - all you need is a function that knows how to turn a column separator character in an instance of CSVFormat.

Attributes

Members list

Type members

Classlikes

final case class CsvSeq(rec: CSVRecord) extends IndexedSeq[String]

Types

type CSVFormat = CSVFormat
type CSVFormatBuilder = CsvConfiguration => CSVFormat

Type of functions that create a CSVFormat instance from a given column separator.

Type of functions that create a CSVFormat instance from a given column separator.

Attributes

type QuoteMode = QuoteMode

Value members

Concrete methods

def defaultFormat(conf: CsvConfiguration): CSVFormat

Creates a default CSVFormat instance using the specified column separator.

Creates a default CSVFormat instance using the specified column separator.

Attributes

def readerEngineFrom(f: CSVFormatBuilder): ReaderEngine

Creates a new ReaderEngine from the specified kantan.csv.engine.commons.CSVFormatBuilder.

Creates a new ReaderEngine from the specified kantan.csv.engine.commons.CSVFormatBuilder.

The purpose of this is to let developers use some of the commons-csv features that kantan.csv does not expose through its public API.

Attributes

def writerEngineFrom(f: CSVFormatBuilder): WriterEngine

Creates a new WriterEngine from the specified CSVFormatBuilder.

Creates a new WriterEngine from the specified CSVFormatBuilder.

The purpose of this is to let developers use some of the commons-csv features that kantan.csv does not expose through its public API.

Attributes

Implicits

Implicits

implicit val commonsCsvReaderEngine: ReaderEngine

Default commons-csv ReaderEngine.

Default commons-csv ReaderEngine.

It's possible to tweak the behaviour of the underlying writer through readerEngineFrom.

Attributes

implicit val commonsCsvWriterEngine: WriterEngine

Default commons-csv WriterEngine.

Default commons-csv WriterEngine.

It's possible to tweak the behaviour of the underlying writer through writerEngineFrom.

Attributes