Class SortingVisitor
java.lang.Object
java.nio.file.SimpleFileVisitor<Path>
org.apache.logging.log4j.core.appender.rolling.action.SortingVisitor
- All Implemented Interfaces:
FileVisitor<Path>
FileVisitor that sorts files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<PathWithAttributes>
private static final Logger
private final PathSorter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvisitFile
(Path path, BasicFileAttributes attrs) visitFileFailed
(Path file, IOException ioException) Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory
-
Field Details
-
LOGGER
-
sorter
-
collected
-
-
Constructor Details
-
SortingVisitor
Constructs a new DeletingVisitor.- Parameters:
basePath
- used to relativize pathspathFilters
- objects that need to confirm whether a file can be deleted
-
-
Method Details
-
visitFile
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classSimpleFileVisitor<Path>
- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailed
in interfaceFileVisitor<Path>
- Overrides:
visitFileFailed
in classSimpleFileVisitor<Path>
- Throws:
IOException
-
getSortedPaths
-