public class SortingVisitor extends SimpleFileVisitor<Path>
| Constructor and Description |
|---|
SortingVisitor(PathSorter sorter)
Constructs a new DeletingVisitor.
|
| Modifier and Type | Method and Description |
|---|---|
List<PathWithAttributes> |
getSortedPaths() |
FileVisitResult |
visitFile(Path path,
BasicFileAttributes attrs) |
postVisitDirectory, 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-2021 The Apache Software Foundation. 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.