|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter org.geotools.io.DefaultFileFilter
A FileFilter
implementation using Unix-style wildcards.
Constructor Summary | |
DefaultFileFilter(java.lang.String pattern)
Construct a file filter for the specified pattern. |
|
DefaultFileFilter(java.lang.String pattern,
java.lang.String description)
Construct a file filter for the specified pattern and description. |
Method Summary | |
boolean |
accept(java.io.File file)
Tests if a specified file matches the pattern. |
boolean |
accept(java.io.File dir,
java.lang.String name)
Tests if a specified file matches the pattern. |
java.lang.String |
getDescription()
Returns the description of this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultFileFilter(java.lang.String pattern)
pattern
- The pattern (e.g. "*.png").public DefaultFileFilter(java.lang.String pattern, java.lang.String description)
pattern
- The pattern (e.g. "*.png").description
- The description of this filter,
usually for graphical user interfaces.Method Detail |
public java.lang.String getDescription()
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
file
- The file to be tested.
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
dir
- the directory in which the file was found.name
- the name of the file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |