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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rdecode(AbstractStreamDecoder target)Decode this value.
-
-
-
Method Detail
-
decode
R decode(AbstractStreamDecoder target) throws java.io.IOException
Decode this value.- Parameters:
target- Reference tothis, allows subclasses to avoid capturingthisto avoid an allocation.- Returns:
- The decoded value
- Throws:
java.io.IOException- if an unrecoverable error occurs
-
-