Class LoggingVisitor
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<Path>
-
- net.shibboleth.idp.installer.plugin.impl.LoggingVisitor
-
- All Implemented Interfaces:
FileVisitor<Path>
public final class LoggingVisitor extends SimpleFileVisitor<Path>
A @{linkFileVisitorcopies directory trees keeping a note of all copied target files.
-
-
Constructor Summary
Constructors Constructor Description LoggingVisitor(Path fromDir, Path toDir)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Path>getCopiedList()did we find a name clash?FileVisitResultpreVisitDirectory(Path dir, BasicFileAttributes attrs)FileVisitResultvisitFile(Path file, BasicFileAttributes attrs)-
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, visitFileFailed
-
-
-
-
Method Detail
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
- Specified by:
preVisitDirectoryin interfaceFileVisitor<Path>- Overrides:
preVisitDirectoryin classSimpleFileVisitor<Path>- Throws:
IOException
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFilein interfaceFileVisitor<Path>- Overrides:
visitFilein classSimpleFileVisitor<Path>- Throws:
IOException
-
-