public class CopyDirectoryVisitor extends CountingPathVisitor
| Constructor and Description |
|---|
CopyDirectoryVisitor(Counters.PathCounters pathCounter,
PathFilter fileFilter,
PathFilter dirFilter,
java.nio.file.Path sourceDirectory,
java.nio.file.Path targetDirectory,
java.nio.file.CopyOption... copyOptions)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|
CopyDirectoryVisitor(Counters.PathCounters pathCounter,
java.nio.file.Path sourceDirectory,
java.nio.file.Path targetDirectory,
java.nio.file.CopyOption... copyOptions)
Constructs a new visitor that deletes files except for the files and directories explicitly given.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.nio.file.CopyOption[] |
getCopyOptions()
Gets the copy options.
|
java.nio.file.Path |
getSourceDirectory()
Gets the source directory.
|
java.nio.file.Path |
getTargetDirectory()
Gets the target directory.
|
int |
hashCode() |
java.nio.file.FileVisitResult |
preVisitDirectory(java.nio.file.Path directory,
java.nio.file.attribute.BasicFileAttributes attributes) |
java.nio.file.FileVisitResult |
visitFile(java.nio.file.Path sourceFile,
java.nio.file.attribute.BasicFileAttributes attributes) |
getPathCounters, postVisitDirectory, toString, withBigIntegerCounters, withLongCountersvisitFileFailedpublic CopyDirectoryVisitor(Counters.PathCounters pathCounter, java.nio.file.Path sourceDirectory, java.nio.file.Path targetDirectory, java.nio.file.CopyOption... copyOptions)
pathCounter - How to count visits.sourceDirectory - The source directorytargetDirectory - The target directorycopyOptions - Specifies how the copying should be done.public CopyDirectoryVisitor(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter, java.nio.file.Path sourceDirectory, java.nio.file.Path targetDirectory, java.nio.file.CopyOption... copyOptions)
pathCounter - How to count visits.fileFilter - How to filter file paths.dirFilter - How to filter directory paths.sourceDirectory - The source directorytargetDirectory - The target directorycopyOptions - Specifies how the copying should be done.public boolean equals(java.lang.Object obj)
equals in class CountingPathVisitorpublic java.nio.file.CopyOption[] getCopyOptions()
public java.nio.file.Path getSourceDirectory()
public java.nio.file.Path getTargetDirectory()
public int hashCode()
hashCode in class CountingPathVisitorpublic java.nio.file.FileVisitResult preVisitDirectory(java.nio.file.Path directory,
java.nio.file.attribute.BasicFileAttributes attributes)
throws java.io.IOException
preVisitDirectory in interface java.nio.file.FileVisitor<java.nio.file.Path>preVisitDirectory in class CountingPathVisitorjava.io.IOExceptionpublic java.nio.file.FileVisitResult visitFile(java.nio.file.Path sourceFile,
java.nio.file.attribute.BasicFileAttributes attributes)
throws java.io.IOException
visitFile in interface java.nio.file.FileVisitor<java.nio.file.Path>visitFile in class CountingPathVisitorjava.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved