org.apache.karaf.shell.obr.util
Class FileUtil

java.lang.Object
  extended by org.apache.karaf.shell.obr.util.FileUtil

public class FileUtil
extends java.lang.Object


Constructor Summary
FileUtil()
           
 
Method Summary
static void copy(java.io.InputStream is, java.io.File dir, java.lang.String destName, java.lang.String destDir, byte[] buffer)
           
static void downloadSource(java.io.PrintStream out, java.io.PrintStream err, java.net.URL srcURL, java.lang.String dirStr, boolean extract)
           
static void unjar(java.util.jar.JarInputStream jis, java.io.File dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
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


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.