Interface StreamDrainer.ByteConsumer

Enclosing class:
StreamDrainer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface StreamDrainer.ByteConsumer
Functional interface for streaming individual bytes with IO exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(byte b)
    Consumes a single byte.
  • Method Details

    • accept

      void accept(byte b) throws IOException
      Consumes a single byte.
      Parameters:
      b - Byte value.
      Throws:
      IOException - On I/O failure.