Class FileUtil
- java.lang.Object
-
- org.apache.felix.bundlerepository.impl.FileUtil
-
public class FileUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopy(java.io.InputStream is, java.io.File dir, java.lang.String destName, java.lang.String destDir, byte[] buffer)static voiddownloadSource(java.io.PrintStream out, java.io.PrintStream err, java.net.URL srcURL, java.lang.String dirStr, boolean extract)static java.io.InputStreamopenURL(java.net.URL url)static java.io.InputStreamopenURL(java.net.URLConnection conn)static voidsetProxyAuth(java.net.URLConnection conn)static voidunjar(java.util.jar.JarInputStream jis, java.io.File dir)
-
-
-
Method Detail
-
downloadSource
public static void downloadSource(java.io.PrintStream out, java.io.PrintStream err, java.net.URL srcURL, java.lang.String dirStr, boolean extract)
-
unjar
public static void unjar(java.util.jar.JarInputStream jis, java.io.File dir) throws java.io.IOException- Throws:
java.io.IOException
-
copy
public static void copy(java.io.InputStream is, java.io.File dir, java.lang.String destName, java.lang.String destDir, byte[] buffer) throws java.io.IOException- Throws:
java.io.IOException
-
setProxyAuth
public static void setProxyAuth(java.net.URLConnection conn) throws java.io.IOException- Throws:
java.io.IOException
-
openURL
public static java.io.InputStream openURL(java.net.URL url) throws java.io.IOException- Throws:
java.io.IOException
-
openURL
public static java.io.InputStream openURL(java.net.URLConnection conn) throws java.io.IOException- Throws:
java.io.IOException
-
-