system
Class JavaFilenameFilter
java.lang.Object
system.JavaFilenameFilter
- All Implemented Interfaces:
- FilenameFilter
- public class JavaFilenameFilter
- extends Object
- implements FilenameFilter
This class is used for filtering out the correct filenames when getting the file
list with File.list(new JavaFilenameFilter())
.
- Since:
- 1.00
- Version:
- 1.02
- Author:
- Berend "Kirk" Wouda
Method Summary |
boolean |
accept(File dir,
String name)
Returns true when the passed filename should be included in the listing,
or false otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaFilenameFilter
public JavaFilenameFilter()
accept
public boolean accept(File dir,
String name)
- Returns true when the passed filename should be included in the listing,
or false otherwise.
- Specified by:
accept
in interface FilenameFilter
- Parameters:
dir
- The folder the file is in.name
- The name of the file.- See Also:
FilenameFilter.accept(java.io.File, java.lang.String)