Package org.apache.commons.io.filefilter
Class PathMatcherFileFilter
java.lang.Object
org.apache.commons.io.filefilter.AbstractFileFilter
org.apache.commons.io.filefilter.PathMatcherFileFilter
- All Implemented Interfaces:
- FileFilter,- FilenameFilter,- FileVisitor<Path>,- PathMatcher,- PathFilter,- PathVisitor,- IOFileFilter
Delegates matching to a 
PathMatcher.- Since:
- 2.14.0
- 
Field SummaryFields inherited from interface org.apache.commons.io.filefilter.IOFileFilterEMPTY_STRING_ARRAY
- 
Constructor SummaryConstructorsConstructorDescriptionPathMatcherFileFilter(PathMatcher pathMatcher) Constructs a new instance to perform matching with a PathMatcher.
- 
Method SummaryMethods inherited from class org.apache.commons.io.filefilter.AbstractFileFilteraccept, handle, postVisitDirectory, preVisitDirectory, toString, visitFile, visitFileFailedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.io.filefilter.IOFileFilteraccept, and, negate, or
- 
Constructor Details- 
PathMatcherFileFilterConstructs a new instance to perform matching with a PathMatcher.- Parameters:
- pathMatcher- The PathMatcher delegate.
 
 
- 
- 
Method Details- 
acceptDescription copied from class:AbstractFileFilterTests to see if the File should be accepted by this filter.- Specified by:
- acceptin interface- FileFilter
- Specified by:
- acceptin interface- IOFileFilter
- Overrides:
- acceptin class- AbstractFileFilter
- Parameters:
- file- the File to check
- Returns:
- true if this file matches the test
 
- 
matchesDescription copied from interface:IOFileFilterTests if a Path should be accepted by this filter.- Parameters:
- path- the Path to check.
- Returns:
- true if this path matches the test.
 
 
-