system
Class JavaFilenameFilter

java.lang.Object
  extended bysystem.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

Constructor Summary
JavaFilenameFilter()
           
 
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
 

Constructor Detail

JavaFilenameFilter

public JavaFilenameFilter()
Method Detail

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)