de.unkrig.commons.file.fileprocessing
Interface FileProcessor<T>
- Type Parameters:
T - The type that process(String, File) returns; use "Void" if not needed
- All Known Implementing Classes:
- FileContentsProcessor, SelectiveFileProcessor
public interface FileProcessor<T>
An entity that "does something" with a File.
|
Method Summary |
T |
process(java.lang.String path,
java.io.File file)
Do 'something' with the given file. |
process
@Nullable
T process(java.lang.String path,
java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
- Do 'something' with the given file.
- Parameters:
path - The string that characterizes the file
- Throws:
java.io.FileNotFoundException
java.io.IOException