public interface FileHandler
FileWalker
Modifier and Type | Method and Description |
---|---|
boolean |
directoryEnd(java.io.File dir)
This method is called for each directory, that a FileWalker finished to walk through.
|
boolean |
directoryStart(java.io.File dir,
int count)
This method is called for each directory, that a FileWalker starts to walk through.
|
boolean |
handleException(java.lang.Exception ex,
java.io.File file)
This method is called for whenever an exception occurs in walking through
the directories.
|
boolean |
handleFile(java.io.File file)
This method is called for each file, that a FileWalker instance finds.
|
boolean handleFile(java.io.File file)
file
- The file, currently found by the FileWalker instanceboolean handleException(java.lang.Exception ex, java.io.File file)
ex
- The exception to handlefile
- The file, currently found by the FileWalker instanceboolean directoryEnd(java.io.File dir)
dir
- The directory, the FileWalker has finished to walk throughboolean directoryStart(java.io.File dir, int count)
dir
- The directory, the FileWalker is starting to walk throughcount
- The number of files and directories the FileWalker found in the directory