org.griphyn.vdl.diagnozer
Class FindTheFile
java.lang.Object
org.griphyn.vdl.diagnozer.FindTheFile
- All Implemented Interfaces:
- FilenameFilter
class FindTheFile
- extends Object
- implements FilenameFilter
Implements a file filter that searches for one matching suffix.
|
Method Summary |
boolean |
accept(File dir,
String name)
Tests if a specified file should be included in a file list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_suffix
private String m_suffix
- Remembers the suffix.
FindTheFile
public FindTheFile(String suffix)
- C'tor
- Parameters:
suffix - is the suffix to filter files with
accept
public boolean accept(File dir,
String name)
- Tests if a specified file should be included in a file list.
- Specified by:
accept in interface FilenameFilter
- Parameters:
dir - the directory in which the file was found.name - the name of the file.
- Returns:
true iff the name should be included in the
file list; false otherwise.
Copyright © 2007 The University of Southern California. All Rights Reserved.