|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ebmwebsourcing.petalsbpm.utils.server.FileHelper
public class FileHelper
| Constructor Summary | |
|---|---|
FileHelper()
|
|
| Method Summary | |
|---|---|
static void |
cleanDirectory(java.io.File dir)
Recursively deletes all the children of the directory |
static void |
copyFile(java.io.File file,
java.io.File outputDirectory)
Copies the given file into the given output directory |
static java.lang.String |
getUsablePath(java.io.File dir)
|
static java.lang.String |
getUsablePath(java.lang.String path)
|
static void |
recursiveDelete(java.io.File f)
Recursively deletes the file and its children |
static void |
writeFile(java.lang.String absoluteFilePath,
java.lang.String content)
Writes the given content in a the file denoted by the given path (creating it if necessary) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileHelper()
| Method Detail |
|---|
public static void writeFile(java.lang.String absoluteFilePath,
java.lang.String content)
throws java.io.IOException
absolutePath - content -
java.io.IOException
public static void copyFile(java.io.File file,
java.io.File outputDirectory)
throws java.io.IOException
file - outputDirectory -
java.io.IOExceptionpublic static void cleanDirectory(java.io.File dir)
dir - public static void recursiveDelete(java.io.File f)
f - public static java.lang.String getUsablePath(java.io.File dir)
public static java.lang.String getUsablePath(java.lang.String path)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||