org.pf.file
Class AbstractFileHandler
java.lang.Object
org.pf.file.AbstractFileHandler
- All Implemented Interfaces:
- FileHandler
public abstract class AbstractFileHandler
- extends java.lang.Object
- implements FileHandler
This abstract class implements some of the FileHandler interface methods
in a way that allows subclasses to concentrate on the method handleFile().
- Version:
- 1.0
- Author:
- Manfred Duchrow
|
Method Summary |
boolean |
directoryEnd(java.io.File dir)
The default is to do nothing and return true so that the FileWalker
can continue |
boolean |
directoryStart(java.io.File dir,
int count)
The default is to do nothing and return true so that the FileWalker
can continue |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFileHandler
public AbstractFileHandler()
directoryStart
public boolean directoryStart(java.io.File dir,
int count)
- The default is to do nothing and return true so that the FileWalker
can continue
- Specified by:
directoryStart in interface FileHandler
- Parameters:
dir - The directory, the FileWalker is starting to walk throughcount - The number of files and directories the FileWalker found in the directory
- Returns:
- true to continue, false to terminate processing of files
directoryEnd
public boolean directoryEnd(java.io.File dir)
- The default is to do nothing and return true so that the FileWalker
can continue
- Specified by:
directoryEnd in interface FileHandler
- Parameters:
dir - The directory, the FileWalker has finished to walk through
- Returns:
- true to continue, false to terminate processing of files