Class Loader.JmtFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
jwat.trafficAnalysis.utils.Loader.JmtFileFilter
Enclosing class:
Loader

protected static class Loader.JmtFileFilter extends FileFilter
Inner class used to create simple file filters with only extension check
Author:
Bertoli Marco Date: 15-feb-2006 Time: 15.36.51
  • Constructor Details

    • JmtFileFilter

      public JmtFileFilter(String extension, String description)
      Creates a new filefilter with specified extension and description
      Parameters:
      extension - extension of this filter (for example ".jmt")
      description - description of this filter
  • Method Details

    • accept

      public boolean accept(File f)
      Whether the given file is accepted by this filter.
      Specified by:
      accept in class FileFilter
    • getDescription

      public String getDescription()
      The description of this filter
      Specified by:
      getDescription in class FileFilter
      See Also:
    • getExtension

      public String getExtension()
      Gets extension of this filter
      Returns:
      extension of this filter