|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.io.filefilter.AbstractFileFilter
public abstract class AbstractFileFilter
An abstract class which implements the Java FileFilter and FilenameFilter interfaces via the IOFileFilter interface.
Note that a subclass must override one of the accept methods, otherwise your class will infinitely loop.
Constructor Summary | |
---|---|
AbstractFileFilter()
|
Method Summary | |
---|---|
boolean |
accept(File file)
Checks to see if the File should be accepted by this filter. |
boolean |
accept(File dir,
String name)
Checks to see if the File should be accepted by this filter. |
String |
toString()
Provide a String representaion of this file filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractFileFilter()
Method Detail |
---|
public boolean accept(File file)
accept
in interface FileFilter
accept
in interface IOFileFilter
file
- the File to check
public boolean accept(File dir, String name)
accept
in interface FilenameFilter
accept
in interface IOFileFilter
dir
- the directory File to checkname
- the filename within the directory to check
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |