public class CopyDirectoryVisitor extends CountingPathVisitor
Constructor and Description |
---|
CopyDirectoryVisitor(Counters.PathCounters pathCounter,
Path sourceDirectory,
Path targetDirectory,
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(Object obj) |
CopyOption[] |
getCopyOptions()
Gets the copy options.
|
Path |
getSourceDirectory()
Gets the source directory.
|
Path |
getTargetDirectory()
Gets the target directory.
|
int |
hashCode() |
FileVisitResult |
preVisitDirectory(Path directory,
BasicFileAttributes attributes) |
FileVisitResult |
visitFile(Path sourceFile,
BasicFileAttributes attributes) |
getPathCounters, postVisitDirectory, toString, withBigIntegerCounters, withLongCounters
visitFileFailed
public CopyDirectoryVisitor(Counters.PathCounters pathCounter, Path sourceDirectory, Path targetDirectory, CopyOption... copyOptions)
pathCounter
- How to count visits.sourceDirectory
- The source directorytargetDirectory
- The target directorycopyOptions
- Specifies how the copying should be done.public boolean equals(Object obj)
equals
in class CountingPathVisitor
public CopyOption[] getCopyOptions()
public Path getSourceDirectory()
public Path getTargetDirectory()
public int hashCode()
hashCode
in class CountingPathVisitor
public FileVisitResult preVisitDirectory(Path directory, BasicFileAttributes attributes) throws IOException
preVisitDirectory
in interface FileVisitor<Path>
preVisitDirectory
in class SimpleFileVisitor<Path>
IOException
public FileVisitResult visitFile(Path sourceFile, BasicFileAttributes attributes) throws IOException
visitFile
in interface FileVisitor<Path>
visitFile
in class CountingPathVisitor
IOException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics