T - Type returned by process(String, File)public class SelectiveFileProcessor<T> extends Object implements FileProcessor<T>
| Constructor and Description |
|---|
SelectiveFileProcessor(Predicate<? super String> pathPredicate,
FileProcessor<T> delegate1,
FileProcessor<T> delegate2) |
| Modifier and Type | Method and Description |
|---|---|
T |
process(String path,
File file)
Do 'something' with the given file.
|
String |
toString() |
public SelectiveFileProcessor(Predicate<? super String> pathPredicate, FileProcessor<T> delegate1, FileProcessor<T> delegate2)
@Nullable public T process(String path, File file) throws IOException, InterruptedException
FileProcessorprocess in interface FileProcessor<T>path - The string that characterizes the fileInterruptedException - The processing was parallelized in multiple threads, and at least one of the
threads was interruptedIOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.