com.strangelight.util
Class FileSuffixFilter

java.lang.Object
  |
  +--com.strangelight.util.FileSuffixFilter
All Implemented Interfaces:
java.io.FilenameFilter
Direct Known Subclasses:
PublicIndexFilenameFilter

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

A FilenameFilter which matches filenames against a single file suffix.


Constructor Summary
protected FileSuffixFilter()
           
  FileSuffixFilter(java.lang.String suffix)
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSuffixFilter

public FileSuffixFilter(java.lang.String suffix)
Parameters:
suffix - Files that end with this string will be included; all others will be excluded. (E.g. one might use FileSuffixFilter(".class") to select only java class files.)

FileSuffixFilter

protected FileSuffixFilter()
Method Detail

accept

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