Package e.java.codec
Interface Decoder<I,O>
- Type Parameters:
I
- Type of inputO
- Type of output
- All Known Subinterfaces:
Codec<S,
T>
public interface Decoder<I,O>
Typeclass defining how to decode an input value to an output value, possibly failing with E
-
Field Summary
-
Method Summary
-
Field Details
-
decodingError
A default E to be used when decoding fails
-
-
Method Details
-
decode
Decodes an input, possibly failing with E- Parameters:
input
- An input- Returns:
- Decoded output or E
- See Also:
-