- Type Parameters:
D- the decoded typeE- the encoded typeDX- the decode exception typeEX- the encode exception type
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCodec.Decoder<D, E, X extends Throwable>A decoder.static interfaceCodec.Encoder<D, E, X extends Throwable>An encoder. -
Method Summary
-
Method Details
-
codec
static <D, E, DX extends Throwable, EX extends Throwable> Codec<D,E, codecDX, EX> (Codec.Decoder<D, E, DX> decoder, Codec.Encoder<D, E, EX> encoder) Creates a codec.- Type Parameters:
D- the decoded typeE- the encoded typeDX- the decode exception typeEX- the encode exception type- Parameters:
decoder- the decoderencoder- the encoder- Returns:
- a codec
- Since:
- 4.10.0
-
decode
-
encode
-