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
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
-
Constructor Details
-
SortingVisitor
Constructs a new SortingVisitor.- Parameters:
sorter- Interface implementation which can sort paths.
-
-
Method Details
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>- Overrides:
visitFilein classSimpleFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Overrides:
visitFileFailedin classSimpleFileVisitor<Path>- Throws:
IOException
-
getSortedPaths
-