Package io.micronaut.serde.support
Interface AbstractStreamDecoder.ValueDecoder<R>
- Type Parameters:
R
- Value type
- Enclosing class:
- AbstractStreamDecoder
@Internal
public static interface AbstractStreamDecoder.ValueDecoder<R>
Decoder function for a single value.
-
Method Summary
-
Method Details
-
decode
Decode this value.- Parameters:
target
- Reference tothis
, allows subclasses to avoid capturingthis
to avoid an allocation.- Returns:
- The decoded value
- Throws:
IOException
- if an unrecoverable error occurs
-