package 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
.
- Source
- package.scala
- Alphabetic
- By Inheritance
- commons
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type CSVFormat = org.apache.commons.csv.CSVFormat
- type CSVFormatBuilder = (CsvConfiguration) => CSVFormat
Type of functions that create a
CSVFormat
instance from a given column separator. - final case class CsvSeq(rec: CSVRecord) extends IndexedSeq[String] with Product with Serializable
- type QuoteMode = org.apache.commons.csv.QuoteMode
Value Members
- 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.
- 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.
- def defaultFormat(conf: CsvConfiguration): CSVFormat
Creates a default
CSVFormat
instance using the specified column separator. - 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.
- 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.