Class DynamicType.Default.Dispatcher.ForJava7CapableVm

    • Constructor Detail

      • ForJava7CapableVm

        protected ForJava7CapableVm​(Method toPath,
                                    Method move,
                                    Object[] copyOptions)
        Creates a new NIO2 capable dispatcher.
        Parameters:
        toPath - The java.io.File#toPath() method.
        move - The java.nio.Files#move(Path,Path,CopyOption[]) method.
        copyOptions - The copy options to apply.
    • Method Detail

      • copy

        public boolean copy​(File source,
                            File target)
                     throws IOException
        Copies the source file to the target location.
        Specified by:
        copy in interface DynamicType.Default.Dispatcher
        Parameters:
        source - The source file.
        target - The target file.
        Returns:
        true if the source file needs to be deleted.
        Throws:
        IOException - If an I/O error occurs.