@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.Files
A dispatcher to access the
java.nio.file.Files API. |
protected static interface |
FileSystem.ForNio2CapableVm.StandardCopyOption
A dispatcher to interact with
java.nio.file.StandardCopyOption . |
FileSystem.ForLegacyVm, FileSystem.ForNio2CapableVm
Modifier | Constructor and Description |
---|---|
protected |
ForNio2CapableVm() |
Modifier and Type | Method and Description |
---|---|
void |
copy(File source,
File target)
Copies a file.
|
void |
move(File source,
File target)
Moves a file.
|
getInstance
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–2024. All rights reserved.