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 Loggerprivate 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:
visitFilein interfaceFileVisitor<Path>- Overrides:
visitFilein classSimpleFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Overrides:
visitFileFailedin classSimpleFileVisitor<Path>- Throws:
IOException
-
getSortedPaths
-