- java.lang.Object
-
- com.oracle.tools.packager.IOUtils
-
public class IOUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description IOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copyFile(File sourceFile, File destFile)
static void
copyFromURL(URL location, File file)
static void
copyFromURL(URL location, File file, boolean append)
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)
-
-
-
Method Detail
-
deleteRecursive
public static boolean deleteRecursive(File path) throws FileNotFoundException
- Throws:
FileNotFoundException
-
copyFromURL
public static void copyFromURL(URL location, File file) throws IOException
- Throws:
IOException
-
copyFromURL
public static void copyFromURL(URL location, File file, boolean append) throws IOException
- Throws:
IOException
-
copyFile
public static void copyFile(File sourceFile, File destFile) throws IOException
- Throws:
IOException
-
getFolderSize
public static long getFolderSize(File folder)
-
run
public static void run(String launcher, File paramFile, boolean verbose) throws IOException
- Throws:
IOException
-
exec
public static void exec(ProcessBuilder pb, boolean verbose) throws IOException
- Throws:
IOException
-
exec
public static void exec(ProcessBuilder pb, boolean verbose, boolean testForPresenseOnly) throws IOException
- Throws:
IOException
-
exec
public static void exec(ProcessBuilder pb, boolean verbose, boolean testForPresenseOnly, PrintStream consumer) throws IOException
- Throws:
IOException
-
isNotSymbolicLink
public static boolean isNotSymbolicLink(File file)
-
readFully
public static byte[] readFully(File f) throws IOException
- Throws:
IOException
-
-