Package net.bytebuddy.build
Interface Plugin.Engine.Target.ForFolder.Dispatcher
-
- All Known Implementing Classes:
Plugin.Engine.Target.ForFolder.Dispatcher.ForJava7CapableVm,Plugin.Engine.Target.ForFolder.Dispatcher.ForLegacyVm
- Enclosing class:
- Plugin.Engine.Target.ForFolder
protected static interface Plugin.Engine.Target.ForFolder.DispatcherA dispatcher that allows for file copy operations based on NIO2 if available.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPlugin.Engine.Target.ForFolder.Dispatcher.CreationActionAn action for creating a dispatcher.static classPlugin.Engine.Target.ForFolder.Dispatcher.ForJava7CapableVmA dispatcher for VMs that are capable of NIO2.static classPlugin.Engine.Target.ForFolder.Dispatcher.ForLegacyVmA legacy dispatcher that is not capable of NIO.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcopy(java.io.File source, java.io.File target)Copies the source file to the target location.booleanisAlive()Returnstrueif this dispatcher is alive.
-
-
-
Method Detail
-
isAlive
boolean isAlive()
Returnstrueif this dispatcher is alive.- Returns:
trueif this dispatcher is alive.
-
copy
void copy(java.io.File source, java.io.File target) throws java.io.IOExceptionCopies the source file to the target location.- Parameters:
source- The source file.target- The target file.- Throws:
java.io.IOException- If an I/O error occurs.
-
-