org.apache.geronimo.kernel.config
Class IOUtil

java.lang.Object
  extended by org.apache.geronimo.kernel.config.IOUtil

public class IOUtil
extends Object


Constructor Summary
IOUtil()
           
 
Method Summary
static void close(InputStream thing)
           
static void close(JarFile thing)
           
static void close(OutputStream thing)
           
static void close(Reader thing)
           
static void close(Writer thing)
           
static void copyFile(File source, File destination)
           
static void flush(OutputStream thing)
           
static void flush(Writer thing)
           
static Map listAllFileNames(File base)
           
static void recursiveCopy(File srcDir, File destDir)
           
static boolean recursiveDelete(File root)
           
static Set search(File root, String pattern)
           
static void writeAll(InputStream in, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOUtil

public IOUtil()
Method Detail

recursiveCopy

public static void recursiveCopy(File srcDir,
                                 File destDir)
                          throws IOException
Throws:
IOException

copyFile

public static void copyFile(File source,
                            File destination)
                     throws IOException
Throws:
IOException

writeAll

public static void writeAll(InputStream in,
                            OutputStream out)
                     throws IOException
Throws:
IOException

recursiveDelete

public static boolean recursiveDelete(File root)

flush

public static void flush(OutputStream thing)

flush

public static void flush(Writer thing)

close

public static void close(JarFile thing)

close

public static void close(InputStream thing)

close

public static void close(OutputStream thing)

close

public static void close(Reader thing)

close

public static void close(Writer thing)

search

public static Set search(File root,
                         String pattern)
                  throws MalformedURLException
Throws:
MalformedURLException

listAllFileNames

public static Map listAllFileNames(File base)


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