Package net.bytebuddy.utility
Class FileSystem.ForNio2CapableVm
- java.lang.Object
-
- net.bytebuddy.utility.FileSystem
-
- net.bytebuddy.utility.FileSystem.ForNio2CapableVm
-
- Enclosing class:
- FileSystem
@Enhance protected static class FileSystem.ForNio2CapableVm extends FileSystem
A file system representation for a VM that does support NIO2.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceFileSystem.ForNio2CapableVm.DispatcherA dispatcher to resolve aFileto ajava.nio.file.Path.protected static interfaceFileSystem.ForNio2CapableVm.StandardCopyOptionA dispatcher to interact withjava.nio.file.StandardCopyOption.-
Nested classes/interfaces inherited from class net.bytebuddy.utility.FileSystem
FileSystem.CreationAction, FileSystem.ForLegacyVm, FileSystem.ForNio2CapableVm
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.MethodcopyThejava.nio.file.Files#copymethod.private static FileSystem.ForNio2CapableVm.DispatcherDISPATCHERA dispatcher to resolve aFileto ajava.nio.file.Path.private java.lang.reflect.MethodmoveThejava.nio.file.Files#movemethod.private static FileSystem.ForNio2CapableVm.StandardCopyOptionSTANDARD_COPY_OPTIONA dispatcher to interact withjava.nio.file.StandardCopyOption.private static java.lang.ObjectSTATIC_MEMBERIndicates a static method invocation.-
Fields inherited from class net.bytebuddy.utility.FileSystem
INSTANCE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedForNio2CapableVm(java.lang.reflect.Method copy, java.lang.reflect.Method move)Creates a new NIO2-capable file system dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(java.io.File source, java.io.File target)Copies a file.voidmove(java.io.File source, java.io.File target)Moves a file.
-
-
-
Field Detail
-
STATIC_MEMBER
private static final java.lang.Object STATIC_MEMBER
Indicates a static method invocation.
-
DISPATCHER
private static final FileSystem.ForNio2CapableVm.Dispatcher DISPATCHER
A dispatcher to resolve aFileto ajava.nio.file.Path.
-
STANDARD_COPY_OPTION
private static final FileSystem.ForNio2CapableVm.StandardCopyOption STANDARD_COPY_OPTION
A dispatcher to interact withjava.nio.file.StandardCopyOption.
-
copy
private final java.lang.reflect.Method copy
Thejava.nio.file.Files#copymethod.
-
move
private final java.lang.reflect.Method move
Thejava.nio.file.Files#movemethod.
-
-
Method Detail
-
copy
public void copy(java.io.File source, java.io.File target) throws java.io.IOExceptionDescription copied from class:FileSystemCopies a file.- Specified by:
copyin classFileSystem- Parameters:
source- The source file.target- The target file.- Throws:
java.io.IOException- If an I/O exception occurs.
-
move
public void move(java.io.File source, java.io.File target) throws java.io.IOExceptionDescription copied from class:FileSystemMoves a file.- Specified by:
movein classFileSystem- Parameters:
source- The source file.target- The target file.- Throws:
java.io.IOException- If an I/O exception occurs.
-
-