public abstract class AbstractFileFilter extends java.lang.Object implements IOFileFilter
Note that a subclass must override one of the accept methods, otherwise your class will infinitely loop.
| Constructor and Description |
|---|
AbstractFileFilter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean accept(java.io.File file)
accept in interface java.io.FileFilteraccept in interface IOFileFilterfile - the File to checkpublic boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilteraccept in interface IOFileFilterdir - the directory File to checkname - the filename within the directory to checkpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright (c) 2002-2016 Apache Software Foundation