Package net.bytebuddy.dynamic
Class DynamicType.Default.Dispatcher.ForJava7CapableVm
- java.lang.Object
-
- net.bytebuddy.dynamic.DynamicType.Default.Dispatcher.ForJava7CapableVm
-
- All Implemented Interfaces:
DynamicType.Default.Dispatcher
- Enclosing interface:
- DynamicType.Default.Dispatcher
@Enhance public static class DynamicType.Default.Dispatcher.ForJava7CapableVm extends Object implements DynamicType.Default.Dispatcher
A dispatcher for VMs that are capable of NIO2.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.DynamicType.Default.Dispatcher
DynamicType.Default.Dispatcher.CreationAction, DynamicType.Default.Dispatcher.ForJava7CapableVm, DynamicType.Default.Dispatcher.ForLegacyVm
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedForJava7CapableVm(Method toPath, Method move, Object[] copyOptions)Creates a new NIO2 capable dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancopy(File source, File target)Copies the source file to the target location.
-
-
-
Method Detail
-
copy
public boolean copy(File source, File target) throws IOException
Copies the source file to the target location.- Specified by:
copyin interfaceDynamicType.Default.Dispatcher- Parameters:
source- The source file.target- The target file.- Returns:
trueif the source file needs to be deleted.- Throws:
IOException- If an I/O error occurs.
-
-