Package net.bytebuddy.utility
Class FileSystem.ForNio2CapableVm
java.lang.Object
net.bytebuddy.utility.FileSystem
net.bytebuddy.utility.FileSystem.ForNio2CapableVm
- Enclosing class:
FileSystem
A file system representation for a VM that does support NIO2.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceA dispatcher to resolve aFileto ajava.nio.file.Path.protected static interfaceA dispatcher to access thejava.nio.file.FilesAPI.protected static interfaceA dispatcher to interact withjava.nio.file.StandardCopyOption.Nested classes/interfaces inherited from class net.bytebuddy.utility.FileSystem
FileSystem.ForLegacyVm, FileSystem.ForNio2CapableVm -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final FileSystem.ForNio2CapableVm.DispatcherA dispatcher to resolve aFileto ajava.nio.file.Path.private static final FileSystem.ForNio2CapableVm.FilesA dispatcher to resolve a dispatcher forjava.nio.file.Files.private static final FileSystem.ForNio2CapableVm.StandardCopyOptionA dispatcher to interact withjava.nio.file.StandardCopyOption. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.bytebuddy.utility.FileSystem
getInstance
-
Field Details
-
DISPATCHER
A dispatcher to resolve aFileto ajava.nio.file.Path. -
FILES
A dispatcher to resolve a dispatcher forjava.nio.file.Files. -
STANDARD_COPY_OPTION
A dispatcher to interact withjava.nio.file.StandardCopyOption.
-
-
Constructor Details
-
ForNio2CapableVm
protected ForNio2CapableVm()
-
-
Method Details
-
copy
Description copied from class:FileSystemCopies a file.- Specified by:
copyin classFileSystem- Parameters:
source- The source file.target- The target file.- Throws:
IOException- If an I/O exception occurs.
-
move
Description copied from class:FileSystemMoves a file.- Specified by:
movein classFileSystem- Parameters:
source- The source file.target- The target file.- Throws:
IOException- If an I/O exception occurs.
-