Aggregates a CellEncoder and a CellDecoder.
Aggregates a CellEncoder and a CellDecoder.
The sole purpose of this type class is to provide a convenient way to create encoders and decoders. It should not be used directly for anything but instance creation - in particular, it should never be used in a context bound or expected as an implicit parameter.
kantan.codecs.Codec
Describes how to decode CSV cells into specific types.
Describes how to decode CSV cells into specific types.
All types A
such that there exists an implicit instance of CellDecoder[A]
in scope can be decoded from CSV
cells.
Note that instances of this type class are rarely used directly - their purpose is to be implicitly assembled into more complex instances of kantan.csv.RowDecoder.
See the companion object for creation and summoning methods.
kantan.codecs.Decoder
All default CellDecoder instances.
Describes how to encode values of a specific type to CSV cells.
Describes how to encode values of a specific type to CSV cells.
All types A
such that there exists an implicit instance of CellEncoder[A]
in scope can be encoded to CSV
cells.
Note that instances of this type class are rarely used directly - their purpose is to be implicitly assembled into more complex instances of RowEncoder.
See the companion object for creation and summoning methods.
kantan.codecs.Encoder
All default CellEncoder instances.
Turns instances of S
into valid sources of CSV data.
Type class for all types that can be turned into CsvWriter instances.
Iterator on CSV rows.
Type of values that know how to write CSV data.
Parent type for all errors that can occur while decoding CSV data.
Result of a decode operation, which can be either a success or a failure.
Result of a decode operation, which can be either a success or a failure.
The difference between a parse and a decode result is that the former comes from reading raw data and trying to interpret it as CSV, while the later comes from turning CSV data into useful Scala types.
Failure cases are all encoded as DecodeError.
kantan.codecs.Result
Result of a parsing operation, which can be either a success or a failure.
Result of a parsing operation, which can be either a success or a failure.
The difference between a parse and a decode result is that the former comes from reading raw data and trying to interpret it as CSV, while the later comes from turning CSV data into useful Scala types.
Failure cases are all encoded as ParseError.
kantan.codecs.Result
Parent type for all errors that can occur while dealing with CSV data.
Result of a reading operation, which can be either a success or a failure.
Result of a reading operation, which can be either a success or a failure.
Both ParseResult and DecodeResult are valid values of type ReadResult.
kantan.codecs.Result
Aggregates a RowEncoder and a RowDecoder.
Aggregates a RowEncoder and a RowDecoder.
The sole purpose of this type class is to provide a convenient way to create encoders and decoders. It should not be used directly for anything but instance creation - in particular, it should never be used in a context bound or expected as an implicit parameter.
kantan.codecs.Codec
Describes how to decode CSV rows into specific types.
Describes how to decode CSV rows into specific types.
All types A
such that there exists an implicit instance of RowDecoder[A]
in scope can be decoded from CSV
rows by functions such as CsvInput.reader or CsvInput.read.
See the companion object for creation and summoning methods.
kantan.codecs.Decoder
Provides reasonable default RowDecoder instances for various types.
Describes how to encode values of a specific type to CSV rows.
Describes how to encode values of a specific type to CSV rows.
All types A
such that there exists an implicit instance of RowEncoder[A]
in scope can be encoded to CSV
rows by functions such as CsvOutput.writer or CsvOutput.write.
See the companion object for creation and summoning methods.
kantan.codecs.Encoder
Provides reasonable default RowEncoder instances for various types.
Declares helpful methods for CellCodec creation.
Provides useful methods for summoning and creating instances of CellDecoder.
Provides useful methods for summoning and creating instances of CellEncoder.
Defines convenience methods for creating and retrieving instances of CsvInput.
Provides default instances as well as instance summoning and creation methods.
Provides instance creation and summoning methods.
Provides useful instance creation methods.
Declares all possible values of type DecodeError.
Provides useful methods for RowCodec instance creation.
Provides various instance creation and summoning methods.
Provides various instance creation and summoning methods.