Class FileReplacer.ReplacerFilter

java.lang.Object
org.jppf.utils.FileReplacer.ReplacerFilter
All Implemented Interfaces:
FileFilter
Enclosing class:
FileReplacer

public static class FileReplacer.ReplacerFilter extends Object implements FileFilter
File filter based on a set of extensions.
  • Constructor Details

    • ReplacerFilter

      public ReplacerFilter(String[] exts, String[] exc)
      Initializer this filter with the specified set of file extensions.
      Parameters:
      exts - an array of file extensions to process.
      exc - a comma-separated list of regex used to exclude folders.
    • ReplacerFilter

      public ReplacerFilter(String[] exts)
      Initializer this filter with the specified set of file extensions.
      Parameters:
      exts - a comma-separated list of file extensions to process.
  • Method Details

    • accept

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