? AbstractFileFilter
java.lang.Object
org.apache.commons.io.filefilter.AbstractFileFilter
- ????????:
FileFilter
,FilenameFilter
,FileVisitor<Path>
,PathFilter
,PathVisitor
,IOFileFilter
- ??????:
AgeFileFilter
,AndFileFilter
,CanExecuteFileFilter
,CanReadFileFilter
,CanWriteFileFilter
,DelegateFileFilter
,DirectoryFileFilter
,EmptyFileFilter
,FileEqualsFileFilter
,FileFileFilter
,HiddenFileFilter
,MagicNumberFileFilter
,NameFileFilter
,NotFileFilter
,OrFileFilter
,PathEqualsFileFilter
,PathVisitorFileFilter
,PrefixFileFilter
,RegexFileFilter
,SizeFileFilter
,SuffixFileFilter
,SymbolicLinkFileFilter
,WildcardFileFilter
,WildcardFilter
Abstracts the implementation of the
FileFilter
(IO), FilenameFilter
(IO), PathFilter
(NIO)
interfaces via our own IOFileFilter
interface.
Note that a subclass MUST override one of the accept
methods, otherwise that subclass will infinitely loop.
- ???????:
- 1.0
-
????
???????? org.apache.commons.io.filefilter.IOFileFilter
EMPTY_STRING_ARRAY
-
?????
??? -
????
??????????boolean
Checks to see if the File should be accepted by this filter.boolean
Checks to see if the File should be accepted by this filter.protected FileVisitResult
Handles exceptions caught while accepting.postVisitDirectory
(Path dir, IOException exc) preVisitDirectory
(Path dir, BasicFileAttributes attributes) toString()
Provides a String representation of this file filter.visitFile
(Path file, BasicFileAttributes attributes) visitFileFailed
(Path file, IOException exc) ??????? java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
???????? org.apache.commons.io.filefilter.IOFileFilter
accept, and, negate, or
-
???????
-
AbstractFileFilter
public AbstractFileFilter()
-
-
??????
-
accept
Checks to see if the File should be accepted by this filter.- ???:
accept
????FileFilter
- ???:
accept
????IOFileFilter
- ??:
file
- the File to check- ??:
- true if this file matches the test
-
accept
Checks to see if the File should be accepted by this filter.- ???:
accept
????FilenameFilter
- ???:
accept
????IOFileFilter
- ??:
dir
- the directory File to checkname
- the file name within the directory to check- ??:
- true if this file matches the test
-
handle
Handles exceptions caught while accepting.- ??:
t
- the caught Throwable.- ??:
- the given Throwable.
- ???????:
- 2.9.0
-
postVisitDirectory
- ???:
postVisitDirectory
????FileVisitor<Path>
- ??:
IOException
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attributes) throws IOException - ???:
preVisitDirectory
????FileVisitor<Path>
- ??:
IOException
-
toString
Provides a String representation of this file filter. -
visitFile
- ???:
visitFile
????FileVisitor<Path>
- ??:
IOException
-
visitFileFailed
- ???:
visitFileFailed
????FileVisitor<Path>
- ??:
IOException
-