|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kirkwarez.kirkpack.io.filter.file.NormalFileFilter
com.kirkwarez.kirkpack.io.filter.file.ExtensionFileFilter
This class is used for filtering out files with the given extension(s) when using
java.io.File.listFiles(java.io.FileFilter)
or other things requiring
file filters.
File
Field Summary | |
protected String[] |
extensions
The extension to filter on. |
Constructor Summary | |
ExtensionFileFilter(String extension)
Constructs a new filter that filters out files with the given extension. |
|
ExtensionFileFilter(String[] extensions)
Constructs a new filter that filters out files with the given extensions. |
Method Summary | |
boolean |
accept(File file)
Returns whether when the passed file should be included in the listing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String[] extensions
Constructor Detail |
public ExtensionFileFilter(String extension)
extension
- The extension, without a period.public ExtensionFileFilter(String[] extensions)
extensions
- The extensions, without periods.Method Detail |
public boolean accept(File file)
accept
in interface FileFilter
accept
in class NormalFileFilter
file
- The file to be checked upon.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |