server.install.IOUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of server-install Show documentation
Show all versions of server-install Show documentation
Framework for delivering desktop application updates
The newest version!
package server.install;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
public final class IOUtils {
public static void copyFile(OutputStream os, File from) throws IOException {
Files.copy(from.toPath(), os);
}
public static void copyFile(File to, File from) throws IOException {
Files.copy(from.toPath(), to.toPath(), StandardCopyOption.REPLACE_EXISTING);
}
}