Class FileUtil
java.lang.Object
org.apache.felix.bundlerepository.impl.FileUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(InputStream is, File dir, String destName, String destDir, byte[] buffer) static voiddownloadSource(PrintStream out, PrintStream err, URL srcURL, String dirStr, boolean extract) static InputStreamstatic InputStreamopenURL(URLConnection conn) static voidsetProxyAuth(URLConnection conn) static voidunjar(JarInputStream jis, File dir)
-
Constructor Details
-
FileUtil
public FileUtil()
-
-
Method Details
-
downloadSource
public static void downloadSource(PrintStream out, PrintStream err, URL srcURL, String dirStr, boolean extract) -
unjar
- Throws:
IOException
-
copy
public static void copy(InputStream is, File dir, String destName, String destDir, byte[] buffer) throws IOException - Throws:
IOException
-
setProxyAuth
- Throws:
IOException
-
openURL
- Throws:
IOException
-
openURL
- Throws:
IOException
-