Package org.jppf.doc

Class AbstractFileFilter

java.lang.Object
org.jppf.doc.AbstractFileFilter
All Implemented Interfaces:
FileFilter
Direct Known Subclasses:
JPPFDirFilter, JPPFFileFilter

public abstract class AbstractFileFilter extends Object implements FileFilter
Filter that only accepts directories. It is possible to include or excluded specific directory names, in which case the including filter is applied before the excluding one.
  • Field Details

    • includes

      protected String[] includes
      Included names. If specified, only these directories will be included.
    • excludes

      protected String[] excludes
      Excluded names. If specified, only these directories will be excluded.
  • Constructor Details

    • AbstractFileFilter

      public AbstractFileFilter()
      Initialize a filter accepting all names.
  • Method Details

    • included

      protected boolean included(String name, boolean ignoreCase)
      Check whether the specified name is included by this filter.
      Parameters:
      name - the name to check.
      ignoreCase - determines whether name comparisons should ignore case.
      Returns:
      true if the name is included, false otherwise.
    • excluded

      protected boolean excluded(String name, boolean ignoreCase)
      Check whether the specified name is excluded by this filter.
      Parameters:
      name - the name to check.
      ignoreCase - determines whether name comparisons should ignore case.
      Returns:
      true if the name is excluded, false otherwise.