Package org.jboss.util.file
Class FilenameSuffixFilter
- java.lang.Object
-
- org.jboss.util.file.FilenameSuffixFilter
-
- All Implemented Interfaces:
java.io.FilenameFilter
public class FilenameSuffixFilter extends java.lang.Object implements java.io.FilenameFilter
A suffix based filename filter.- Version:
- $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
ignoreCase
Flag to signal that we want to ignore the case.protected java.lang.String
suffix
The suffix which files must have to be accepted.
-
Constructor Summary
Constructors Constructor Description FilenameSuffixFilter(java.lang.String suffix)
Construct a case sensitive FilenameSuffixFilter.FilenameSuffixFilter(java.lang.String suffix, boolean ignoreCase)
Construct a FilenameSuffixFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.io.File dir, java.lang.String name)
Check if a file is acceptible.
-
-
-
Constructor Detail
-
FilenameSuffixFilter
public FilenameSuffixFilter(java.lang.String suffix, boolean ignoreCase)
Construct a FilenameSuffixFilter.- Parameters:
suffix
- The suffix which files must have to be accepted.ignoreCase
- True if the filter should be case-insensitive.
-
FilenameSuffixFilter
public FilenameSuffixFilter(java.lang.String suffix)
Construct a case sensitive FilenameSuffixFilter.- Parameters:
suffix
- The suffix which files must have to be accepted.
-
-