org.apache.geronimo.kernel.config
Class IOUtil
java.lang.Object
org.apache.geronimo.kernel.config.IOUtil
public class IOUtil
- extends Object
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 Map<String,File> |
find(File root,
String pattern)
|
static void |
find(File root,
String pattern,
Map<String,File> matches)
|
static void |
flush(OutputStream thing)
|
static void |
flush(Writer thing)
|
static Map<String,File> |
listAllFileNames(File base)
|
static void |
recursiveCopy(File srcDir,
File destDir)
|
static boolean |
recursiveDelete(File root)
|
static Set<URL> |
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 |
IOUtil
public IOUtil()
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)
find
public static Map<String,File> find(File root,
String pattern)
find
public static void find(File root,
String pattern,
Map<String,File> matches)
search
public static Set<URL> search(File root,
String pattern)
throws MalformedURLException
- Throws:
MalformedURLException
listAllFileNames
public static Map<String,File> listAllFileNames(File base)
Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.