kantan.codecs.strings
Defines codecs for encoding to and decoding from strings.
These codecs are not necessary meant to use directly, but more as part of larger ones. kantan.csv, for example, works with CSV files but delegates the act of encoding to or decoding from a CSV cell to string codecs.
Default instances can be found in kantan.codecs.strings.codecs.
Attributes
Members list
Type members
Classlikes
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass ErrorCompanion[DecodeError]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
DecodeError.type
JVM-specific codecs.
JVM-specific codecs.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object StringCodec
JVM-specific decoders.
JVM-specific decoders.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object StringDecoder
JVM-specific encoders.
JVM-specific encoders.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object StringEncoder
JVM-specific codec instances.
JVM-specific codec instances.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object codecs
Provides instance creation methods.
Provides instance creation methods.
No instance summoning method is provided - this is by design. Developers should never work with codecs, but with instances of StringEncoder and StringDecoder instead. Codecs are merely meant as a declaration convenience.
Default instances are defined in codecs.
Attributes
- Supertypes
- Self type
-
StringCodec.type
Provides instance creation and summing methods for StringDecoder.
Provides instance creation and summing methods for StringDecoder.
Default StringDecoder instances are provided in codecs.
Attributes
- Supertypes
- Self type
-
StringDecoder.type
Attributes
- Supertypes
- Self type
-
StringEncoder.type
Attributes
- Supertypes
-
class WithError[DecodeError]trait WithDefault[DecodeError]trait Simple[DecodeError]trait Simple[DecodeError]class Objecttrait Matchableclass AnyShow all
- Self type
-
StringResult.type
Defines default instances for StringEncoder and StringDecoder.
Defines default instances for StringEncoder and StringDecoder.
Attributes
- Supertypes
- Self type
-
codecs.type
Types
Type of values values returned when attempting to decode a String
.
Type of values values returned when attempting to decode a String
.