|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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(java.io.File file)
Checks to see if the File should be accepted by this filter. |
boolean |
accept(java.io.File dir,
java.lang.String name)
Checks to see if the File should be accepted by this filter. |
java.lang.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(java.io.File file)
accept
in interface java.io.FileFilter
accept
in interface IOFileFilter
file
- the File to check
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
accept
in interface IOFileFilter
dir
- the directory File to checkname
- the filename within the directory to check
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |