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()).
- Version:
- 1
- 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
- See Also:
FilenameFilter.accept(java.io.File, java.lang.String)