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

    Modifier and Type
    Method
    Description
    Decode this value.
  • Method Details

    • decode

      R decode(AbstractStreamDecoder target) throws IOException
      Decode this value.
      Parameters:
      target - Reference to this, allows subclasses to avoid capturing this to avoid an allocation.
      Returns:
      The decoded value
      Throws:
      IOException - if an unrecoverable error occurs