Class XmlFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
com.compomics.util.io.file.filefilters.XmlFileFilter
public class XmlFileFilter extends FileFilter
File filter for *.xml files.
- Author:
- Harald Barsnes
-
Constructor Summary
Constructors Constructor Description XmlFileFilter()
Empty default constructor -
Method Summary
Modifier and Type Method Description boolean
accept(File f)
Accept all directories, *.xml files.String
getDescription()
The description of the filter.
-
Constructor Details
-
XmlFileFilter
public XmlFileFilter()Empty default constructor
-
-
Method Details
-
accept
Accept all directories, *.xml files.- Specified by:
accept
in classFileFilter
- Parameters:
f
- the file- Returns:
- true if the file passes the filter
-
getDescription
The description of the filter.- Specified by:
getDescription
in classFileFilter
- Returns:
- String the description of the filter
-