Package org.apache.commons.io.filefilter
Class PathVisitorFileFilter
java.lang.Object
org.apache.commons.io.filefilter.AbstractFileFilter
org.apache.commons.io.filefilter.PathVisitorFileFilter
- All Implemented Interfaces:
- FileFilter,- FilenameFilter,- FileVisitor<Path>,- PathMatcher,- PathFilter,- PathVisitor,- IOFileFilter
A file filter backed by a path visitor.
- Since:
- 2.9.0
- 
Field SummaryFields inherited from interface org.apache.commons.io.filefilter.IOFileFilterEMPTY_STRING_ARRAY
- 
Constructor SummaryConstructorsConstructorDescriptionPathVisitorFileFilter(PathVisitor pathVisitor) Constructs a new instance that will forward calls to the given visitor.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanTests to see if the File should be accepted by this filter.booleanTests to see if the File should be accepted by this filter.accept(Path path, BasicFileAttributes attributes) Checks to see if a Path should be accepted by this filter.visitFile(Path path, BasicFileAttributes attributes) Methods inherited from class org.apache.commons.io.filefilter.AbstractFileFilterhandle, postVisitDirectory, preVisitDirectory, toString, visitFileFailedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.io.filefilter.IOFileFilterand, matches, negate, or
- 
Constructor Details- 
PathVisitorFileFilterConstructs a new instance that will forward calls to the given visitor.- Parameters:
- pathVisitor- visit me.
 
 
- 
- 
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
 
- 
acceptDescription copied from class:AbstractFileFilterTests to see if the File should be accepted by this filter.- Specified by:
- acceptin interface- FilenameFilter
- Specified by:
- acceptin interface- IOFileFilter
- Overrides:
- acceptin class- AbstractFileFilter
- Parameters:
- dir- the directory File to check
- name- the file name within the directory to check
- Returns:
- true if this file matches the test
 
- 
acceptDescription copied from interface:IOFileFilterChecks to see if a Path should be accepted by this filter.- Parameters:
- path- the Path to check.
- attributes- the path's basic attributes (may be null).
- Returns:
- true if this path matches the test.
 
- 
visitFile- Specified by:
- visitFilein interface- FileVisitor<Path>
- Overrides:
- visitFilein class- AbstractFileFilter
- Throws:
- IOException
 
 
-