SRC - The type that the codec decodes from and encodes toIN - The type produced by decodingOUT - The type consumed by encodingpublic interface Codec<SRC,IN,OUT>
SRC into an
instance of IN and passing that to the given Consumer. A
codec also provides an encoder to take an instance of OUT and encode to an
instance of SRC.| Modifier and Type | Method and Description |
|---|---|
Function<SRC,IN> |
decoder(Consumer<IN> next)
Provide the caller with a decoder to turn a source object into an instance of the input
type.
|
Function<OUT,SRC> |
encoder()
Provide the caller with an encoder to turn an output object into an instance of the source
type.
|