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.
| 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 representaion of this file filter.
|
public boolean accept(File file)
accept in interface IOFileFilteraccept in interface FileFilterfile - the File to checkpublic boolean accept(File dir, String name)
accept in interface IOFileFilteraccept in interface FilenameFilterdir - the directory File to checkname - the filename within the directory to checkCopyright © 2001–2019 KnowGate. All rights reserved.