edu.mayo.bsi.ngsportal.server
Class FileNamePlusFilter

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.server.FileNamePlusFilter
All Implemented Interfaces:
FilenameFilter

public class FileNamePlusFilter
extends Object
implements FilenameFilter

Class that filters for files that have a name plus one or more characters

@author Gregory Dougherty


Constructor Summary
FileNamePlusFilter(String baseName)
          Base Constructor: Delete files with baseName plus something more
FileNamePlusFilter(String baseName, boolean includeBase)
          Base Constructor
 
Method Summary
 boolean accept(File dir, String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileNamePlusFilter

public FileNamePlusFilter(String baseName)
Base Constructor: Delete files with baseName plus something more

Parameters:
baseName - Name to search for

FileNamePlusFilter

public FileNamePlusFilter(String baseName,
                          boolean includeBase)
Base Constructor

Parameters:
baseName - Name to search for
includeBase - If true, includes files with the passed in name, if false, only includes files with the passed in name, plus something more
Method Detail

accept

public boolean accept(File dir,
                      String name)
Specified by:
accept in interface FilenameFilter