/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package socius.telas.util; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import static java.nio.file.StandardCopyOption.COPY_ATTRIBUTES; import static java.nio.file.StandardCopyOption.REPLACE_EXISTING; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Ana */ public class MoverArquivoCompartilhar implements Runnable{ private Path original; private Path copia; public MoverArquivoCompartilhar(Path original, Path copia) { this.original = original; this.copia = copia; } @Override public void run() { try { Files.copy(original, copia,REPLACE_EXISTING); } catch (IOException ex) { Logger.getLogger(MoverArquivoCompartilhar.class.getName()).log(Level.SEVERE, null, ex); } } }