StringCodec

kantan.codecs.strings.StringCodec

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

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def dateCodec(format: DateFormat): StringCodec[Date]

Creates a StringCodec instance for java.util.Date.

Creates a StringCodec instance for java.util.Date.

Attributes

Inherited from:
PlatformSpecificCodecs
def from[D](d: Decoder[String, D, DecodeError, codecs.type], e: Encoder[String, D, codecs.type]): Codec[String, D, DecodeError, codecs.type]

Attributes

Inherited from:
CodecCompanion
def from[D](f: String => Either[DecodeError, D])(g: D => String): Codec[String, D, DecodeError, codecs.type]

Attributes

Inherited from:
CodecCompanion