FileFilter, FilenameFilter, IOFileFilterDirectoryFileFilter, FileFileFilter, NameFileFilterpublic 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 | Description |
|---|---|
AbstractFileFilter() |
| Modifier and Type | Method | 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 FileFilteraccept in interface IOFileFilterfile - the File to checkpublic boolean accept(File dir, String name)
accept in interface FilenameFilteraccept in interface IOFileFilterdir - the directory File to checkname - the filename within the directory to checkCopyright © 2024 GeneXus S.A.. All rights reserved.