Class SuffixMatchFilter

All Implemented Interfaces:
VirtualFileFilter, VirtualFileFilterWithAttributes

public class SuffixMatchFilter extends AbstractVirtualFileFilterWithAttributes
Matches a file name against a list of suffixes.
Version:
$Revision: 44223 $
  • Field Details

    • suffixes

      private Collection<String> suffixes
      The suffixes
    • trace

      private boolean trace
  • Constructor Details

  • Method Details

    • accepts

      public boolean accepts(VirtualFile file)
      Accept any file that ends with one of the filter suffixes. This checks that the file.getName() endsWith a suffix.
      Parameters:
      file - the virtual file
      Returns:
      true if the file matches a suffix, false otherwise.