net.sourceforge.pavlov.zipUtilities
Class DirectoryJarFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.sourceforge.pavlov.zipUtilities.DirectoryJarFileFilter

public class DirectoryJarFileFilter
extends FileFilter

A FileFilter that accepts directories and JarFiles.


Constructor Summary
DirectoryJarFileFilter()
           
 
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
 

Constructor Detail

DirectoryJarFileFilter

public DirectoryJarFileFilter()
Method Detail

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