|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.library.FileFilter
implements java.io.FilenameFilter interface. Uses to filter files in a directory following the extensio
| Constructor Summary | |
FileFilter()
contructor of a filter to filtre only file without extension |
|
FileFilter(java.lang.String[] extensions)
contructor of a filter to filtre on ly file with the given extensio |
|
| Method Summary | |
boolean |
accept(java.io.File dir,
java.lang.String name)
retrieved if a file accepted by the filter. |
void |
addExtension(java.lang.String extension)
Adds authorise file extension |
static void |
main(java.lang.String[] args)
for testing purpose retrieves file in the current directory with a given file extension |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileFilter()
public FileFilter(java.lang.String[] extensions)
extensions - array of accepted extensions| Method Detail |
public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilterdir - path to the directory containing the file to testname - the name of the file to test
public void addExtension(java.lang.String extension)
extension - nex file extensioin to authorisepublic static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||