public class FileUtil extends Object
Constructor | Description |
---|---|
FileUtil() |
Modifier and Type | Method | Description |
---|---|---|
static void |
copy(InputStream is,
File dir,
String destName,
String destDir,
byte[] buffer) |
|
static void |
downloadSource(PrintStream out,
PrintStream err,
URL srcURL,
String dirStr,
boolean extract) |
|
static InputStream |
openURL(URL url) |
|
static InputStream |
openURL(URLConnection conn) |
|
static void |
setProxyAuth(URLConnection conn) |
|
static void |
unjar(JarInputStream jis,
File dir) |
public static void downloadSource(PrintStream out, PrintStream err, URL srcURL, String dirStr, boolean extract)
public static void unjar(JarInputStream jis, File dir) throws IOException
IOException
public static void copy(InputStream is, File dir, String destName, String destDir, byte[] buffer) throws IOException
IOException
public static void setProxyAuth(URLConnection conn) throws IOException
IOException
public static InputStream openURL(URL url) throws IOException
IOException
public static InputStream openURL(URLConnection conn) throws IOException
IOException
Copyright © 2018. All rights reserved.