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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisitFile
(Path path, BasicFileAttributes attrs) visitFileFailed
(Path file, IOException ioException) Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory
-
Constructor Details
-
SortingVisitor
Constructs a new SortingVisitor.- Parameters:
sorter
- Interface implementation which can sort paths.
-
-
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
-