public class IOUtils extends Object
Constructor and Description |
---|
IOUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(File sourceFile,
File destFile) |
static void |
copyFromURL(URL location,
File file) |
static boolean |
deleteRecursive(File path) |
static void |
exec(ProcessBuilder pb,
boolean verbose) |
static void |
exec(ProcessBuilder pb,
boolean verbose,
boolean testForPresenseOnly) |
static void |
exec(ProcessBuilder pb,
boolean verbose,
boolean testForPresenseOnly,
PrintStream consumer) |
static long |
getFolderSize(File folder) |
static boolean |
isNotSymbolicLink(File file) |
static byte[] |
readFully(File f) |
static void |
run(String launcher,
File paramFile,
boolean verbose) |
public static boolean deleteRecursive(File path) throws FileNotFoundException
FileNotFoundException
public static void copyFromURL(URL location, File file) throws IOException
IOException
public static void copyFile(File sourceFile, File destFile) throws IOException
IOException
public static long getFolderSize(File folder)
public static void run(String launcher, File paramFile, boolean verbose) throws IOException
IOException
public static void exec(ProcessBuilder pb, boolean verbose) throws IOException
IOException
public static void exec(ProcessBuilder pb, boolean verbose, boolean testForPresenseOnly) throws IOException
IOException
public static void exec(ProcessBuilder pb, boolean verbose, boolean testForPresenseOnly, PrintStream consumer) throws IOException
IOException
public static boolean isNotSymbolicLink(File file)
public static byte[] readFully(File f) throws IOException
IOException
Copyright © 2020. All rights reserved.