org.griphyn.vdl.diagnozer
Class FindTheFile

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


Field Summary
private  String m_suffix
          Remembers the suffix.
 
Constructor Summary
FindTheFile(String suffix)
          C'tor
 
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
 

Field Detail

m_suffix

private String m_suffix
Remembers the suffix.

Constructor Detail

FindTheFile

public FindTheFile(String suffix)
C'tor

Parameters:
suffix - is the suffix to filter files with
Method Detail

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.