org.pf.file
Class AbstractFileHandler

java.lang.Object
  extended by 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

Constructor Summary
AbstractFileHandler()
           
 
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
 
Methods inherited from interface org.pf.file.FileHandler
handleException, handleFile
 

Constructor Detail

AbstractFileHandler

public AbstractFileHandler()
Method Detail

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 through
count - 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