T - The type that process(String, File) returns; use "Void" if not neededpublic interface FileProcessor<T>
File.| Modifier and Type | Method and Description |
|---|---|
T |
process(java.lang.String path,
java.io.File file)
Do 'something' with the given file.
|
@Nullable T process(java.lang.String path, java.io.File file) throws java.io.FileNotFoundException, java.io.IOException, java.lang.InterruptedException
path - The string that characterizes the filejava.lang.InterruptedException - The processing was parallelized in multiple threads, and at least one of the
threads was interruptedjava.io.FileNotFoundExceptionjava.io.IOException