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.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
Plugin.Engine.Target.ForFolder.Dispatcher.CreationAction
An action for creating a dispatcher.static class
Plugin.Engine.Target.ForFolder.Dispatcher.ForJava7CapableVm
A dispatcher for VMs that are capable of NIO2.static class
Plugin.Engine.Target.ForFolder.Dispatcher.ForLegacyVm
A legacy dispatcher that is not capable of NIO.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
copy(java.io.File source, java.io.File target)
Copies the source file to the target location.boolean
isAlive()
Returnstrue
if this dispatcher is alive.
-
-
-
Method Detail
-
isAlive
boolean isAlive()
Returnstrue
if this dispatcher is alive.- Returns:
true
if this dispatcher is alive.
-
copy
void 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.- Throws:
java.io.IOException
- If an I/O error occurs.
-
-