Package rma.io

Class RegExpFileFilter

All Implemented Interfaces:
FileFilter, FilenameFilter

public class RegExpFileFilter extends FileFilter implements FileFilter, FilenameFilter
  • Constructor Details

    • RegExpFileFilter

      public RegExpFileFilter(List filters)
      Create a new RegExpFileFilter object
      Parameters:
      filters - Description
    • RegExpFileFilter

      public RegExpFileFilter(List filters, boolean reverse)
      Create a new RegExpFileFilter object
      Parameters:
      filters - Description
      reverse - Description
  • Method Details

    • setAcceptDirectories

      public void setAcceptDirectories(boolean b)
    • accept

      public boolean accept(File dir, String name)
      Specified by:
      accept in interface FilenameFilter
    • accept

      public boolean accept(File f)
      Tests whether or not the specified abstract pathname should be included in a pathname list.
      Specified by:
      accept in interface FileFilter
      Specified by:
      accept in class FileFilter
      Parameters:
      f - The abstract pathname to be tested
      Returns:
      true if and only if pathname should be included
    • setDescription

      public void setDescription(String description)
      Sets the description of this filter. For example: "JPG and GIF Images"
      Parameters:
      description -
    • getDescription

      public String getDescription()
      Gets the Description attribute of the RegExpFileFilter object
      Specified by:
      getDescription in class FileFilter
      Returns:
      The Description value
    • main

      public static void main(String[] args)