Package org.jboss.util.file
Class FilenamePrefixFilter
- java.lang.Object
-
- org.jboss.util.file.FilenamePrefixFilter
-
- All Implemented Interfaces:
java.io.FilenameFilter
public class FilenamePrefixFilter extends java.lang.Object implements java.io.FilenameFilterA prefix based filename 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.StringprefixThe prefix which files must have to be accepted.
-
Constructor Summary
Constructors Constructor Description FilenamePrefixFilter(java.lang.String prefix)Construct a case sensitive FilenamePrefixFilter.FilenamePrefixFilter(java.lang.String prefix, boolean ignoreCase)Construct a FilenamePrefixFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File dir, java.lang.String name)Check if a file is acceptible.
-
-
-
Constructor Detail
-
FilenamePrefixFilter
public FilenamePrefixFilter(java.lang.String prefix, boolean ignoreCase)Construct a FilenamePrefixFilter.- Parameters:
prefix- The prefix which files must have to be accepted.ignoreCase- True if the filter should be case-insensitive.
-
FilenamePrefixFilter
public FilenamePrefixFilter(java.lang.String prefix)
Construct a case sensitive FilenamePrefixFilter.- Parameters:
prefix- The prefix which files must have to be accepted.
-
-