FileHandlerpublic interface FileHandler This interface must be implemented by classes, that want to use the generic
services of FileWalker.
It defines callback methods, that are invoked by a FileWalker instance, when
it is 'walking' through a directory(-tree). |
Methods Summary |
---|
public boolean | directoryEnd(java.io.File dir)This method is called for each directory, that a FileWalker finished to walk through.
It must return true, if the FileWalker should continue. To stop the
calling FileWalker it can return false.
| public boolean | directoryStart(java.io.File dir, int count)This method is called for each directory, that a FileWalker starts to walk through.
It must return true, if the FileWalker should continue. To stop the
calling FileWalker it can return false.
| public boolean | handleException(java.lang.Exception ex, java.io.File file)This method is called for whenever an exception occurs in walking through
the directories.
The method must return true, if the FileWalker should continue. To stop the
calling FileWalker it can return false.
| public boolean | handleFile(java.io.File file)This method is called for each file, that a FileWalker instance finds.
It must return true, if the FileWalker should continue. To stop the
calling FileWalker it can return false.
|
|