|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.util.filter.ExtensionFileFilter
This filters files based on the extension (what the filename ends with). This is used in retrieving all the files of a particular type.
| Constructor Summary | |
ExtensionFileFilter(java.lang.String extension)
Creates a new file filter given the extension. |
|
ExtensionFileFilter(java.lang.String[] extensions)
Creates a new file filter given the extensions. |
|
| Method Summary | |
boolean |
accept(java.io.File file,
java.lang.String name)
Implementing the main interface method for filtering files. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ExtensionFileFilter(java.lang.String[] extensions)
extensions - The file extensionspublic ExtensionFileFilter(java.lang.String extension)
extension - The file extension| Method Detail |
public boolean accept(java.io.File file,
java.lang.String name)
accept in interface java.io.FilenameFilterThe - filename - The name
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||