|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
edu.stanford.nlp.io.ExtensionFileFilter
Implements a file filter that uses file extensions to filter files.
Constructor Summary | |
ExtensionFileFilter(String ext)
Sets up an extension file filter that will recurse into sub directories. |
|
ExtensionFileFilter(String ext,
boolean recurse)
Sets up Extension file filter by specifying an extension to accept (currently only 1) and whether to also display folders for recursive search. |
Method Summary | |
boolean |
accept(File file)
Checks whether a file satisfies the selection filter. |
String |
getDescription()
Returns a description of what extension is being used (for file choosers). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtensionFileFilter(String ext, boolean recurse)
ext
- File extension (not including period) or null for anyrecurse
- go into folderspublic ExtensionFileFilter(String ext)
Method Detail |
public boolean accept(File file)
accept
in interface FileFilter
file
- The file
public String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |