@HashCodeAndEqualsPlugin.Enhance protected static class FileSystem.ForNio2CapableVm extends FileSystem
| Modifier and Type | Class and Description | 
|---|---|
| protected static interface  | FileSystem.ForNio2CapableVm.DispatcherA dispatcher to resolve a  Fileto ajava.nio.file.Path. | 
| protected static interface  | FileSystem.ForNio2CapableVm.StandardCopyOptionA dispatcher to interact with  java.nio.file.StandardCopyOption. | 
FileSystem.CreationAction, FileSystem.ForLegacyVm, FileSystem.ForNio2CapableVmINSTANCE| 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
FileSystemcopy in class FileSystemsource - The source file.target - The target file.IOException - If an I/O exception occurs.public void move(File source, File target) throws IOException
FileSystemmove in class FileSystemsource - The source file.target - The target file.IOException - If an I/O exception occurs.Copyright © 2014–2021. All rights reserved.