|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.util.file.FilenamePrefixFilter
A prefix based filename filter.
| Field Summary | |
protected boolean |
ignoreCase
Flag to signal that we want to ignore the case. |
protected String |
prefix
The prefix which files must have to be accepted. |
| Constructor Summary | |
FilenamePrefixFilter(String prefix)
Construct a case sensitive FilenamePrefixFilter. |
|
FilenamePrefixFilter(String prefix,
boolean ignoreCase)
Construct a FilenamePrefixFilter. |
|
| Method Summary | |
boolean |
accept(File dir,
String name)
Check if a file is acceptible. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final String prefix
protected final boolean ignoreCase
| Constructor Detail |
public FilenamePrefixFilter(String prefix, boolean ignoreCase)
prefix - The prefix which files must have to be accepted.ignoreCase - True if the filter should be case-insensitive.public FilenamePrefixFilter(String prefix)
prefix - The prefix which files must have to be accepted.| Method Detail |
public boolean accept(File dir, String name)
accept in interface FilenameFilterdir - The directory the file resides in.name - The name of the file.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||