|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public 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).
FileWalker
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean handleFile(java.io.File file)
The
- file, currently found by the FileWalker instance
boolean handleException(java.lang.Exception ex, java.io.File file)
ex
- The exception to handleThe
- file, currently found by the FileWalker instance
boolean directoryEnd(java.io.File dir)
dir
- The directory, the FileWalker has finished to walk through
boolean 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |