? DeletingPathVisitor
java.lang.Object
java.nio.file.SimpleFileVisitor<Path>
org.apache.commons.io.file.SimplePathVisitor
org.apache.commons.io.file.CountingPathVisitor
org.apache.commons.io.file.DeletingPathVisitor
- ????????:
FileVisitor<Path>
,PathVisitor
Deletes files and directories as a visit proceeds.
- ???????:
- 2.7
-
?????
????????DeletingPathVisitor
(Counters.PathCounters pathCounter, String... skip) Constructs a new visitor that deletes files except for the files and directories explicitly given.DeletingPathVisitor
(Counters.PathCounters pathCounter, LinkOption[] linkOptions, DeleteOption[] deleteOption, String... skip) Constructs a new visitor that deletes files except for the files and directories explicitly given.DeletingPathVisitor
(Counters.PathCounters pathCounter, DeleteOption[] deleteOption, String... skip) Constructs a new visitor that deletes files except for the files and directories explicitly given. -
????
??????????boolean
int
hashCode()
postVisitDirectory
(Path dir, IOException exc) preVisitDirectory
(Path dir, BasicFileAttributes attrs) visitFile
(Path file, BasicFileAttributes attrs) static DeletingPathVisitor
Creates a new instance configured with a BigIntegerCounters.PathCounters
.static DeletingPathVisitor
Creates a new instance configured with a longCounters.PathCounters
.??????? org.apache.commons.io.file.CountingPathVisitor
getPathCounters, toString, updateDirCounter, updateFileCounters
??????? java.nio.file.SimpleFileVisitor
visitFileFailed
???????? java.nio.file.FileVisitor
visitFileFailed
-
???????
-
DeletingPathVisitor
public DeletingPathVisitor(Counters.PathCounters pathCounter, DeleteOption[] deleteOption, String... skip) Constructs a new visitor that deletes files except for the files and directories explicitly given.- ??:
pathCounter
- How to count visits.deleteOption
- How deletion is handled.skip
- The files to skip deleting.- ???????:
- 2.8.0
-
DeletingPathVisitor
public DeletingPathVisitor(Counters.PathCounters pathCounter, LinkOption[] linkOptions, DeleteOption[] deleteOption, String... skip) Constructs a new visitor that deletes files except for the files and directories explicitly given.- ??:
pathCounter
- How to count visits.linkOptions
- How symbolic links are handled.deleteOption
- How deletion is handled.skip
- The files to skip deleting.- ???????:
- 2.9.0
-
DeletingPathVisitor
Constructs a new visitor that deletes files except for the files and directories explicitly given.- ??:
pathCounter
- How to count visits.skip
- The files to skip deleting.
-
-
??????
-
withBigIntegerCounters
Creates a new instance configured with a BigIntegerCounters.PathCounters
.- ??:
- a new instance configured with a BigInteger
Counters.PathCounters
.
-
withLongCounters
Creates a new instance configured with a longCounters.PathCounters
.- ??:
- a new instance configured with a long
Counters.PathCounters
.
-
equals
- ??:
equals
???CountingPathVisitor
-
hashCode
- ??:
hashCode
???CountingPathVisitor
-
postVisitDirectory
- ???:
postVisitDirectory
????FileVisitor<Path>
- ??:
postVisitDirectory
???CountingPathVisitor
- ??:
IOException
-
preVisitDirectory
- ???:
preVisitDirectory
????FileVisitor<Path>
- ??:
preVisitDirectory
???CountingPathVisitor
- ??:
IOException
-
visitFile
- ???:
visitFile
????FileVisitor<Path>
- ??:
visitFile
???CountingPathVisitor
- ??:
IOException
-