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 Detail

      • decode

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