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
-
Method Summary
Modifier and Type Method Description void
doWithInputStream(java.io.InputStream stream)
Called with the InputStream for the remote file.
-
Method Details
-
doWithInputStream
void doWithInputStream(java.io.InputStream stream) throws java.io.IOExceptionCalled 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:
java.io.IOException
- Any IOException.
-