abstract class AbstractFileFilter
extends java.lang.Object
implements java.io.FileFilter
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
filter |
| Constructor and Description |
|---|
AbstractFileFilter(java.lang.String filter)
Constructs an abstruct file filter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File pathname)
Tests whether or not the specified abstract pathname should be
included in a pathname list.
|
abstract boolean |
accept(java.lang.String filename)
Tests whether or not the specified abstract pathname should be
included in a pathname list.
|
java.lang.String |
toString()
Gets a string representation of the object.
|
public AbstractFileFilter(java.lang.String filter)
filter - filter file stringpublic boolean accept(java.io.File pathname)
accept in interface java.io.FileFilterpathname - The abstract pathname to be testedtrue if and only if pathname
should be includedpublic abstract boolean accept(java.lang.String filename)
filename - The filename to be testedtrue if and only if pathname
should be includedpublic java.lang.String toString()
toString in class java.lang.Object