Package

kantan.codecs

strings

Permalink

package 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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. strings
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed case class DecodeError(message: String) extends Error with Product with Serializable

    Permalink
  2. type StringCodec[A] = Codec[String, A, DecodeError, codecs.type]

    Permalink

    Codec for strings.

  3. type StringDecoder[A] = Decoder[String, A, DecodeError, codecs.type]

    Permalink

    Decoder for strings.

    Decoder for strings.

    Default instances can be found in codecs.

  4. type StringEncoder[A] = Encoder[String, A, codecs.type]

    Permalink

    Encoder for strings.

    Encoder for strings.

    Default instances can be found in codecs.

Value Members

  1. object DecodeError extends ErrorCompanion[DecodeError] with Serializable

    Permalink
  2. object StringCodec

    Permalink

    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.

  3. object StringDecoder

    Permalink

    Provides instance creation and summing methods for StringDecoder.

    Provides instance creation and summing methods for StringDecoder.

    Default StringDecoder instances are provided in codecs.

  4. object StringEncoder

    Permalink
  5. object codecs

    Permalink

    Defines default instances for StringEncoder and StringDecoder.

Inherited from AnyRef

Inherited from Any

Ungrouped