net.sourceforge.pavlov.zipUtilities
Class DirectoryJarFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
net.sourceforge.pavlov.zipUtilities.DirectoryJarFileFilter
public class DirectoryJarFileFilter
- extends FileFilter
A FileFilter that accepts directories and JarFiles.
Method Summary |
boolean |
accept(File f)
Returns true if the file is a directory or is named as a JAR file. |
String |
getDescription()
Returns a description of this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryJarFileFilter
public DirectoryJarFileFilter()
accept
public boolean accept(File f)
- Returns true if the file is a directory or is named as a JAR file.
- Specified by:
accept
in class FileFilter
- Parameters:
f
- a File
value
- Returns:
- a
boolean
value
getDescription
public String getDescription()
- Returns a description of this filter.
- Specified by:
getDescription
in class FileFilter
- Returns:
- a
String
value