Package com.infilos.utils.io
Class FileCopyVisitor
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<Path>
-
- com.infilos.utils.io.FileCopyVisitor
-
- All Implemented Interfaces:
FileVisitor<Path>
public class FileCopyVisitor extends SimpleFileVisitor<Path>
-
-
Constructor Summary
Constructors Constructor Description FileCopyVisitor(Path source, Path target, CopyOption... copyOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileVisitResult
preVisitDirectory(Path dir, BasicFileAttributes attrs)
FileVisitResult
visitFile(Path file, BasicFileAttributes attrs)
-
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, visitFileFailed
-
-
-
-
Constructor Detail
-
FileCopyVisitor
public FileCopyVisitor(Path source, Path target, CopyOption... copyOptions)
-
-
Method Detail
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
- Specified by:
preVisitDirectory
in interfaceFileVisitor<Path>
- Overrides:
preVisitDirectory
in classSimpleFileVisitor<Path>
- Throws:
IOException
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFile
in interfaceFileVisitor<Path>
- Overrides:
visitFile
in classSimpleFileVisitor<Path>
- Throws:
IOException
-
-