package engine
- Source
- package.scala
- Alphabetic
- By Inheritance
- engine
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- package commons
Provides CSV reader and writer engines using commons-csv.
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 ofCSVFormat
.
Type Members
- trait ReaderEngine extends AnyRef
Provides kantan.csv with CSV parsing functionality.
Provides kantan.csv with CSV parsing functionality.
All methods that will need to create a new instance of CsvReader expect and rely on an implicit ReaderEngine parameter. This allows third party libraries to plug into kantan.csv and replace the default parser at the cost of a simple import.
- trait WriterEngine extends AnyRef
Provides factory-like services for CsvWriter.
Provides factory-like services for CsvWriter.
Functions that create instances of CsvWriter, either as part of their return types or for internal operations, can declare an implicit CsvWriter parameter. If one is imported explicitly (such as the Jackson engine), it will be used. Otherwise, the internal one is always in scope.
- See also
Value Members
- implicit def javaIterator(it: Iterator[Array[String]]): Iterator[Seq[String]]
Converts a java iterator of arrays of strings into a scala iterator of sequence of strings.
Converts a java iterator of arrays of strings into a scala iterator of sequence of strings.
This is useful when writing ReaderEngine implementations for Java libraries.
- object ReaderEngine
Provides instance creation methods and default implementations.
- object WriterEngine
Provides creation methods and default implementations.