Class PathMatcherFileFilter

    • Constructor Detail

      • PathMatcherFileFilter

        public PathMatcherFileFilter​(java.nio.file.PathMatcher pathMatcher)
        Constructs a new instance to perform matching with a PathMatcher.
        Parameters:
        pathMatcher - The PathMatcher delegate.
    • Method Detail

      • accept

        public boolean accept​(java.io.File file)
        Description copied from class: AbstractFileFilter
        Checks to see if the File should be accepted by this filter.
        Specified by:
        accept in interface java.io.FileFilter
        Specified by:
        accept in interface IOFileFilter
        Overrides:
        accept in class AbstractFileFilter
        Parameters:
        file - the File to check
        Returns:
        true if this file matches the test
      • matches

        public boolean matches​(java.nio.file.Path path)
        Description copied from interface: IOFileFilter
        Tests if a Path should be accepted by this filter.
        Parameters:
        path - the Path to check.
        Returns:
        true if this path matches the test.