Package net.bytebuddy.dynamic
Interface DynamicType.Default.Dispatcher
-
- All Known Implementing Classes:
DynamicType.Default.Dispatcher.ForJava7CapableVm,DynamicType.Default.Dispatcher.ForLegacyVm
- Enclosing class:
- DynamicType.Default
protected static interface DynamicType.Default.DispatcherA dispatcher that allows for file copy operations based on NIO2 if available.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDynamicType.Default.Dispatcher.CreationActionAn action for creating a dispatcher.static classDynamicType.Default.Dispatcher.ForJava7CapableVmA dispatcher for VMs that are capable of NIO2.static classDynamicType.Default.Dispatcher.ForLegacyVmA legacy dispatcher that is not capable of NIO.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancopy(File source, File target)Copies the source file to the target location.
-
-
-
Method Detail
-
copy
boolean copy(File source, File target) throws IOException
Copies the source file to the target location.- 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.
-
-