public abstract class AbstractFileFilter extends Object implements IOFileFilter
Note that a subclass must override one of the accept methods, otherwise your class will infinitely loop.
EMPTY_STRING_ARRAY
Constructor and Description |
---|
AbstractFileFilter() |
Modifier and Type | Method and Description |
---|---|
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 representation of this file filter.
|
public boolean accept(File file)
accept
in interface FileFilter
accept
in interface IOFileFilter
file
- the File to checkpublic boolean accept(File dir, String name)
accept
in interface FilenameFilter
accept
in interface IOFileFilter
dir
- the directory File to checkname
- the file name within the directory to checkJas4pp 1.5 © Java Analysis Studio for Particle Physics