Package uk.ac.starlink.topcat
Class SuffixFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
uk.ac.starlink.topcat.SuffixFileFilter
File filter that matches according to filename suffix.
Any file which ends in the same string as one of the suffices supplied
at construction time is considered to match. This matching is
case insensitive. Any directory is considered to match also
(this permits navigation in the JFileChooser).
- Since:
- 19 Dec 2005
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionSuffixFileFilter
(String[] suffices) Constructs a new file filter which selects on the given suffices. -
Method Summary
-
Constructor Details
-
SuffixFileFilter
Constructs a new file filter which selects on the given suffices. These are matched case-insensitively.- Parameters:
suffices
- array of suitable suffix strings
-
-
Method Details
-
getDescription
- Specified by:
getDescription
in classFileFilter
-
accept
- Specified by:
accept
in classFileFilter
-
equals
-
hashCode
public int hashCode()
-