Package org.jppf.doc

Class JPPFFileFilter

All Implemented Interfaces:
FileFilter

public class JPPFFileFilter extends AbstractFileFilter
Filter that only accepts files with specified extensions.
  • Constructor Details

    • JPPFFileFilter

      public JPPFFileFilter()
      Initialize a filter accepting all directory names except those excluded by default.
    • JPPFFileFilter

      public JPPFFileFilter(String[] includes)
      Initialize a filter accepting the specified directory names and excluding those specified by DEFAULT_EXCLUDES.
      Parameters:
      includes - the included directory names; if null all are included. Null values are ignored.
    • JPPFFileFilter

      public JPPFFileFilter(String[] includes, String[] excludes)
      Initialize a filter accepting the specified directory names and excluding the specified ones.
      Parameters:
      includes - the included directory names; if null all are included. Null values are ignored.
      excludes - the excluded directory names; if null none are excluded. Null values are ignored.
  • Method Details

    • accept

      public boolean accept(File path)
      Determine if a file is accepted.
      Parameters:
      path - the file path to check.
      Returns:
      true if the file is accepted, false otherwise.
      See Also: