Decodes an instance of T from a String.
Decodes an instance of T from a String.
Decoding is unsafe as it may throw an exception if parsing failed.
A very common exception type is NumberFormatException.
Encodes an instance of T as a String.
Encodes an instance of T as a String.
In many cases delegating to value.toString is sufficient.
Codec (provides encoding and decoding) type-class for CSV columns. A CSV column is an opaque value within a CSV record, encoded as a String. E.g. a CSV record of only one column would need no column delimiter.
This codec is unsafe. Upon failure (mostly when decoding), an exception may be thrown. A very common exception type is NumberFormatException.
Usually CSV column codecs are provided for types that can be encoded as and decoded from a String, but cannot be broken down to a fixed number of fields. Otherwise CSVConverter is better suited. Instances provided by default are Scala and Java primitives, enumerations and Option.