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
IOExceptionpublic static void copy(InputStream is, File dir, String destName, String destDir, byte[] buffer) throws IOException
IOExceptionpublic static void setProxyAuth(URLConnection conn) throws IOException
IOExceptionpublic static InputStream openURL(URL url) throws IOException
IOExceptionpublic static InputStream openURL(URLConnection conn) throws IOException
IOExceptionCopyright © 2018. All rights reserved.