Package org.jboss.util.file
Class FilePrefixFilter
- java.lang.Object
-
- org.jboss.util.file.FilePrefixFilter
-
- All Implemented Interfaces:
java.io.FileFilter
public class FilePrefixFilter extends java.lang.Object implements java.io.FileFilterA prefix 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.StringprefixThe prefix which files must have to be accepted.
-
Constructor Summary
Constructors Constructor Description FilePrefixFilter(java.lang.String prefix)Construct a case sensitive FilePrefixFilter.FilePrefixFilter(java.lang.String prefix, boolean ignoreCase)Construct a FilePrefixFilter.
-
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
-
FilePrefixFilter
public FilePrefixFilter(java.lang.String prefix, boolean ignoreCase)Construct a FilePrefixFilter.- Parameters:
prefix- The prefix which files must have to be accepted.ignoreCase- True if the filter should be case-insensitive.
-
FilePrefixFilter
public FilePrefixFilter(java.lang.String prefix)
Construct a case sensitive FilePrefixFilter.- Parameters:
prefix- The prefix which files must have to be accepted.
-
-