|
|||||||||
| 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(File dir)
This method is called for each directory, that a FileWalker finished to walk through. |
boolean |
directoryStart(File dir,
int count)
This method is called for each directory, that a FileWalker starts to walk through. |
boolean |
handleException(Exception ex,
File file)
This method is called for whenever an exception occurs in walking through the directories. |
boolean |
handleFile(File file)
This method is called for each file, that a FileWalker instance finds. |
| Method Detail |
|---|
boolean handleFile(File file)
The - file, currently found by the FileWalker instance
boolean handleException(Exception ex,
File file)
ex - The exception to handleThe - file, currently found by the FileWalker instance
boolean directoryEnd(File dir)
dir - The directory, the FileWalker has finished to walk through
boolean directoryStart(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 | ||||||||