|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.deployer.utils.FileUtil
public final class FileUtil
File utilities
| Method Summary | |
|---|---|
static boolean |
buildDirectory(File file)
Build a directory path - creating directories if neccesary |
static void |
copyInputStream(InputStream in,
OutputStream out)
Copy in stream to an out stream |
static boolean |
deleteFile(File fileToDelete)
Delete a file |
static void |
unpackArchive(File theFile,
File targetDir)
Unpack a zip file |
static void |
unpackArchive(InputStream is,
File targetDir)
Unpack an archive from an input stream |
static void |
unpackArchive(URL url,
File targetDir)
Unpack an archive from a URL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean buildDirectory(File file)
file -
public static void copyInputStream(InputStream in,
OutputStream out)
throws IOException
in - out -
IOException
public static void unpackArchive(File theFile,
File targetDir)
throws IOException
theFile - targetDir -
IOException
public static void unpackArchive(URL url,
File targetDir)
throws IOException
url - targetDir -
IOException
public static void unpackArchive(InputStream is,
File targetDir)
throws IOException
is - targetDir -
IOExceptionpublic static boolean deleteFile(File fileToDelete)
fileToDelete -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||