|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.util.file.FilenameSuffixFilter
A suffix based filename filter.
| Field Summary | |
protected boolean |
ignoreCase
Flag to signal that we want to ignore the case. |
protected String |
suffix
The suffix which files must have to be accepted. |
| Constructor Summary | |
FilenameSuffixFilter(String suffix)
Construct a case sensitive FilenameSuffixFilter. |
|
FilenameSuffixFilter(String suffix,
boolean ignoreCase)
Construct a FilenameSuffixFilter. |
|
| 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 suffix
protected final boolean ignoreCase
| Constructor Detail |
public FilenameSuffixFilter(String suffix, boolean ignoreCase)
suffix - The suffix which files must have to be accepted.ignoreCase - True if the filter should be case-insensitive.public FilenameSuffixFilter(String suffix)
suffix - The suffix 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 | ||||||||||