Interface NonshareableDoubleBufferedDataInputStream.FileClosedListener

Enclosing class:
NonshareableDoubleBufferedDataInputStream
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 NonshareableDoubleBufferedDataInputStream.FileClosedListener
This interface allows a handler to be informed when end-of-file is detected by the file-reading thread (typically so the next file can be opened and first buffer loaded before the data consumer finishes consuming this stream).
Author:
Andrew Pavlin, KA2DDO
  • Method Details

    • fileClosedAtEOF

      void fileClosedAtEOF(InputStream inputStream, NonshareableDoubleBufferedDataInputStream stream, Object context)
      Notify the listener that the file-reading thread has reached the end-of-file. Called on the executor-provided thread that does the asynchronous file read-ahead.
      Parameters:
      inputStream - wrapped InputStream that was just closed
      stream - this stream
      context - the Object that was registered with the listener instance