|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.filesystem.FileOnlyFilter
edu.tum.cs.commons.filesystem.FileExtensionFilter
public class FileExtensionFilter
This is a file filter finding only "normal" files having one of the specified extensions.
Constructor Summary | |
---|---|
FileExtensionFilter(java.lang.String... extensions)
Creates a new file extension filter. |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Accepts files and rejects directories. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileExtensionFilter(java.lang.String... extensions)
extensions
- the extension required by the files (without the dot). Note
that using an empty string will not find all files without
extension, but rather those ending in a single dot.Method Detail |
---|
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
accept
in class FileOnlyFilter
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |