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 representation of this file filter.
|
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
accept
in interface IOFileFilter
file
- the File to checkpublic 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 checkpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved