org.sourcejammer.client.gui.conf
Class ExcludeFilesByNameFilter

java.lang.Object
  |
  +--org.sourcejammer.client.gui.conf.ExcludeFilesByNameFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class ExcludeFilesByNameFilter
extends java.lang.Object
implements java.io.FilenameFilter

Title: $FileName: ExcludeFilesByNameFilter.java$

Version:
$VerNum: 3$
Author:
$AuthorName: Rob MacGrogan$

$Description: File filter that allows you to specify file names to be excluded.$
$KeyWordsOff: $

Field Summary
private  java.util.HashMap excludedFiles
           
private  java.util.HashMap excludeExtensions
           
 
Constructor Summary
ExcludeFilesByNameFilter()
           
ExcludeFilesByNameFilter(java.util.HashMap excludeFiles)
          Accepts a HashMap with the names of files to exclude as keys.
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 void excludeExtension(java.lang.String ext)
          Specifies an extension to exclude.
 void excludeFile(java.lang.String name)
          Specifies a file name to exclude.
 void resetExtensionList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

excludedFiles

private java.util.HashMap excludedFiles

excludeExtensions

private java.util.HashMap excludeExtensions
Constructor Detail

ExcludeFilesByNameFilter

public ExcludeFilesByNameFilter(java.util.HashMap excludeFiles)
Accepts a HashMap with the names of files to exclude as keys.


ExcludeFilesByNameFilter

public ExcludeFilesByNameFilter()
Method Detail

excludeFile

public void excludeFile(java.lang.String name)
Specifies a file name to exclude.


excludeExtension

public void excludeExtension(java.lang.String ext)
Specifies an extension to exclude.


resetExtensionList

public void resetExtensionList()

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter
See Also:
FilenameFilter.accept(File, String)


Copyright 2003 Soucejammer project.