@HashCodeAndEqualsPlugin.Enhance protected static class FileSystem.ForNio2CapableVm extends FileSystem
Modifier and Type | Class and Description |
---|---|
protected static interface |
FileSystem.ForNio2CapableVm.Dispatcher
A dispatcher to resolve a
File to a java.nio.file.Path . |
protected static interface |
FileSystem.ForNio2CapableVm.StandardCopyOption
A dispatcher to interact with
java.nio.file.StandardCopyOption . |
FileSystem.CreationAction, FileSystem.ForLegacyVm, FileSystem.ForNio2CapableVm
INSTANCE
Modifier | Constructor and Description |
---|---|
protected |
ForNio2CapableVm(Method copy,
Method move)
Creates a new NIO2-capable file system dispatcher.
|
Modifier and Type | Method and Description |
---|---|
void |
copy(File source,
File target)
Copies a file.
|
void |
move(File source,
File target)
Moves a file.
|
public void copy(File source, File target) throws IOException
FileSystem
copy
in class FileSystem
source
- The source file.target
- The target file.IOException
- If an I/O exception occurs.public void move(File source, File target) throws IOException
FileSystem
move
in class FileSystem
source
- The source file.target
- The target file.IOException
- If an I/O exception occurs.Copyright © 2014–2021. All rights reserved.