|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.util.FileUtil
public class FileUtil
Utility methods for files.
| Constructor Summary | |
|---|---|
FileUtil()
|
|
| Method Summary | |
|---|---|
static void |
recursiveClean(File file)
Recursively deletes all of the files and directories in the supplied directory, but not the directory itself. |
static void |
recursiveDelete(File file)
Recursively delete the specified directory and all files and directories underneath it. |
protected static void |
recursiveWipe(File file,
boolean wipeMe)
Helper function. |
static String |
resuffix(File file,
String ext,
String newext)
Replaces ext with the supplied new extention if the
supplied file path ends in ext. |
static boolean |
unpackJar(JarFile jar,
File target)
Unpacks the specified jar file intto the specified target directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtil()
| Method Detail |
|---|
public static void recursiveDelete(File file)
public static void recursiveClean(File file)
public static String resuffix(File file,
String ext,
String newext)
ext with the supplied new extention if the
supplied file path ends in ext. Otherwise the new
extension is appended to the whole existing file path.
public static boolean unpackJar(JarFile jar,
File target)
protected static void recursiveWipe(File file,
boolean wipeMe)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||