AbstractFileFilterpublic abstract class AbstractFileFilter extends Object implements IOFileFilterAn 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. |
Methods Summary |
---|
public boolean | accept(java.io.File file)Checks to see if the File should be accepted by this filter.
return accept(file.getParentFile(), file.getName());
| public boolean | accept(java.io.File dir, java.lang.String name)Checks to see if the File should be accepted by this filter.
return accept(new File(dir, name));
| public java.lang.String | toString()Provide a String representaion of this file filter.
String name = getClass().getName();
int period = name.lastIndexOf('.");
return (period > 0 ? name.substring(period + 1) : name);
|
|