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.Dispatcher
A dispatcher that allows for file copy operations based on NIO2 if available.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DynamicType.Default.Dispatcher.CreationAction
An action for creating a dispatcher.static class
DynamicType.Default.Dispatcher.ForJava7CapableVm
A dispatcher for VMs that are capable of NIO2.static class
DynamicType.Default.Dispatcher.ForLegacyVm
A legacy dispatcher that is not capable of NIO.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
copy(java.io.File source, java.io.File target)
Copies the source file to the target location.
-
-
-
Method Detail
-
copy
boolean copy(java.io.File source, java.io.File target) throws java.io.IOException
Copies the source file to the target location.- Parameters:
source
- The source file.target
- The target file.- Returns:
true
if the source file needs to be deleted.- Throws:
java.io.IOException
- If an I/O error occurs.
-
-