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 interface
A dispatcher to resolve aFile
to ajava.nio.file.Path
.protected static interface
A dispatcher to access thejava.nio.file.Files
API.protected static interface
A 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.Dispatcher
A dispatcher to resolve aFile
to ajava.nio.file.Path
.private static final FileSystem.ForNio2CapableVm.Files
A dispatcher to resolve a dispatcher forjava.nio.file.Files
.private static final FileSystem.ForNio2CapableVm.StandardCopyOption
A 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 aFile
to 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:FileSystem
Copies a file.- Specified by:
copy
in classFileSystem
- Parameters:
source
- The source file.target
- The target file.- Throws:
IOException
- If an I/O exception occurs.
-
move
Description copied from class:FileSystem
Moves a file.- Specified by:
move
in classFileSystem
- Parameters:
source
- The source file.target
- The target file.- Throws:
IOException
- If an I/O exception occurs.
-