All Packages Class Hierarchy This Package Previous Next Index
Class EDU.gatech.cc.is.util.FilenameFilterByEnding
java.lang.Object
|
+----EDU.gatech.cc.is.util.FilenameFilterByEnding
- public class FilenameFilterByEnding
- extends Object
- implements FilenameFilter
Create a FilenameFilter that only accepts names whose ending matches
a given value.
Copyright
(c)1997, 1998 Tucker Balch
- Version:
- $Revision: 1.2 $
- Author:
- Tucker Balch
-
FilenameFilterByEnding(String)
- Create a FilenameFilterByEnding object.
-
accept(File, String)
- Check a filename to see if it meets critera.
-
main(String[])
- Test the filter.
FilenameFilterByEnding
public FilenameFilterByEnding(String e)
- Create a FilenameFilterByEnding object.
- Parameters:
- e - String, the ending to match.
accept
public boolean accept(File d,
String name)
- Check a filename to see if it meets critera.
- Parameters:
- d - File, the file.
- name - String, the name of the file.
- Returns:
- true if ending matches, false otherwise.
main
public static void main(String args[])
- Test the filter.
All Packages Class Hierarchy This Package Previous Next Index