public class DeletingPathVisitor extends CountingPathVisitor
CountingPathVisitor.AbstractBuilder<T,B extends CountingPathVisitor.AbstractBuilder<T,B>>, CountingPathVisitor.BuilderEMPTY_STRING_ARRAY| Constructor and Description |
|---|
DeletingPathVisitor(Counters.PathCounters pathCounter,
DeleteOption[] deleteOption,
String... skip)
Constructs a instance that deletes files except for the files and directories explicitly given.
|
DeletingPathVisitor(Counters.PathCounters pathCounter,
LinkOption[] linkOptions,
DeleteOption[] deleteOption,
String... skip)
Constructs a instance that deletes files except for the files and directories explicitly given.
|
DeletingPathVisitor(Counters.PathCounters pathCounter,
String... skip)
Constructs a instance that deletes files except for the files and directories explicitly given.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
FileVisitResult |
postVisitDirectory(Path dir,
IOException exc) |
FileVisitResult |
preVisitDirectory(Path dir,
BasicFileAttributes attrs) |
FileVisitResult |
visitFile(Path file,
BasicFileAttributes attrs) |
static DeletingPathVisitor |
withBigIntegerCounters()
Constructs a new instance configured with a BigInteger
Counters.PathCounters. |
static DeletingPathVisitor |
withLongCounters()
Constructs a new instance configured with a long
Counters.PathCounters. |
accept, defaultDirectoryFilter, defaultDirectoryTransformer, defaultFileFilter, defaultPathCounters, getPathCounters, toString, updateDirCounter, updateFileCountersvisitFileFailedpublic DeletingPathVisitor(Counters.PathCounters pathCounter, DeleteOption[] deleteOption, String... skip)
pathCounter - How to count visits.deleteOption - How deletion is handled.skip - The files to skip deleting.public DeletingPathVisitor(Counters.PathCounters pathCounter, LinkOption[] linkOptions, DeleteOption[] deleteOption, String... skip)
pathCounter - How to count visits.linkOptions - How symbolic links are handled.deleteOption - How deletion is handled.skip - The files to skip deleting.public DeletingPathVisitor(Counters.PathCounters pathCounter, String... skip)
pathCounter - How to count visits.skip - The files to skip deleting.public boolean equals(Object obj)
equals in class CountingPathVisitorpublic int hashCode()
hashCode in class CountingPathVisitorpublic FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException
postVisitDirectory in interface FileVisitor<Path>postVisitDirectory in class CountingPathVisitorIOExceptionpublic FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
preVisitDirectory in interface FileVisitor<Path>preVisitDirectory in class CountingPathVisitorIOExceptionpublic FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
visitFile in interface FileVisitor<Path>visitFile in class CountingPathVisitorIOExceptionpublic static DeletingPathVisitor withBigIntegerCounters()
Counters.PathCounters.Counters.PathCounters.public static DeletingPathVisitor withLongCounters()
Counters.PathCounters.Counters.PathCounters.