Interface InputStreamCallback

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 InputStreamCallback
Callback for stream-based file retrieval using a RemoteFileOperations.
Since:
3.0
Author:
Gary Russell
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called with the InputStream for the remote file.
  • Method Details

    • doWithInputStream

      void doWithInputStream(InputStream stream) throws IOException
      Called with the InputStream for the remote file. The caller will take care of closing the stream and finalizing the file retrieval operation after this method exits.
      Parameters:
      stream - The InputStream.
      Throws:
      IOException - Any IOException.