Interface ReadCallback

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 interface ReadCallback
Callback interface used to read input from an InputStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Read from the given input stream.
  • Method Details

    • readFrom

      void readFrom(InputStream input) throws IOException
      Read from the given input stream.

      This method should not close() the given input.

      Parameters:
      input - input stream
      Throws:
      IOException - if an I/O error occurs