Package org.jboss.util.file
Class FileSuffixFilter
- java.lang.Object
-
- org.jboss.util.file.FileSuffixFilter
-
- All Implemented Interfaces:
java.io.FileFilter
public class FileSuffixFilter extends java.lang.Object implements java.io.FileFilterA suffix based file filter.- Version:
- $Revision$
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanignoreCaseFlag to signal that we want to ignore the case.protected java.lang.String[]suffixesA list of suffixes which files must have to be accepted.
-
Constructor Summary
Constructors Constructor Description FileSuffixFilter(java.lang.String suffix)Construct a case sensitive FileSuffixFilter.FileSuffixFilter(java.lang.String[] suffixes)Construct a FileSuffixFilter.FileSuffixFilter(java.lang.String[] suffixes, boolean ignoreCase)Construct a FileSuffixFilter.FileSuffixFilter(java.lang.String suffix, boolean ignoreCase)Construct a FileSuffixFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File file)Check if a file is acceptible.
-
-
-
Constructor Detail
-
FileSuffixFilter
public FileSuffixFilter(java.lang.String[] suffixes, boolean ignoreCase)Construct a FileSuffixFilter.- Parameters:
suffixes- A list of suffixes which files mut have to be accepted.ignoreCase- True if the filter should be case-insensitive.
-
FileSuffixFilter
public FileSuffixFilter(java.lang.String[] suffixes)
Construct a FileSuffixFilter.- Parameters:
suffixes- A list of suffixes which files mut have to be accepted.
-
FileSuffixFilter
public FileSuffixFilter(java.lang.String suffix, boolean ignoreCase)Construct a FileSuffixFilter.- Parameters:
suffix- The suffix which files must have to be accepted.ignoreCase- True if the filter should be case-insensitive.
-
FileSuffixFilter
public FileSuffixFilter(java.lang.String suffix)
Construct a case sensitive FileSuffixFilter.- Parameters:
suffix- The suffix which files must have to be accepted.
-
-