FileVisitor<Path>public class SortingVisitor extends SimpleFileVisitor<Path>
| Constructor | Description |
|---|---|
SortingVisitor(PathSorter sorter) |
Constructs a new DeletingVisitor.
|
| Modifier and Type | Method | Description |
|---|---|---|
List<PathWithAttributes> |
getSortedPaths() |
|
FileVisitResult |
visitFile(Path path,
BasicFileAttributes attrs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostVisitDirectory, preVisitDirectory, visitFileFailedpublic SortingVisitor(PathSorter sorter)
basePath - used to relativize pathspathFilters - objects that need to confirm whether a file can be deletedpublic FileVisitResult visitFile(Path path, BasicFileAttributes attrs) throws IOException
visitFile in interface FileVisitor<Path>visitFile in class SimpleFileVisitor<Path>IOExceptionpublic List<PathWithAttributes> getSortedPaths()
Copyright © 1999-2018. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.