|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.util.FileUtil
FileUtil instead
public final class FileUtil
File utilities
| Method Summary | |
|---|---|
static boolean |
archiveContainsEntry(File theFile,
String name)
Deprecated. Validate that an archive contains a named entry |
static boolean |
buildDirectory(File file)
Deprecated. Build a directory path - creating directories if neccesary |
static void |
copyInputStream(InputStream in,
OutputStream out)
Deprecated. Copy in stream to an out stream |
static int |
countFilesInDirectory(File directory)
Deprecated. Count files in a directory (including files in all subdirectories) |
static File |
createUniqueDirectory(File rootDir,
String seed)
Deprecated. Create a unique directory within a directory 'root' |
static boolean |
deleteFile(File fileToDelete)
Deprecated. Delete a file |
static File |
getDirectoryPath(File parent,
String subDirectory)
Deprecated. Build a path- but do not create it |
static void |
moveFile(File src,
File targetDirectory)
Deprecated. Move a File |
static File |
unpackArchive(File theFile,
File targetDir)
Deprecated. Unpack a zip file |
static File |
unpackArchive(URL url,
File targetDir)
Deprecated. Unpack an archive from a URL |
static void |
zipDir(String directory,
String zipName)
Deprecated. Zip up a directory |
static void |
zipDir(String directory,
ZipOutputStream zos,
String path)
Deprecated. Zip up a directory path |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void moveFile(File src,
File targetDirectory)
throws IOException
src - targetDirectory -
IOException
public static File getDirectoryPath(File parent,
String subDirectory)
parent - subDirectory -
public static boolean buildDirectory(File file)
file -
public static int countFilesInDirectory(File directory)
directory - the directory to start in
public static void copyInputStream(InputStream in,
OutputStream out)
throws IOException
in - out -
IOException
public static File unpackArchive(File theFile,
File targetDir)
throws IOException
theFile - targetDir -
IOException
public static File unpackArchive(URL url,
File targetDir)
throws IOException
url - targetDir -
IOException
public static boolean archiveContainsEntry(File theFile,
String name)
throws IOException
theFile - name -
IOException
public static File createUniqueDirectory(File rootDir,
String seed)
throws IOException
rootDir - seed -
IOExceptionpublic static boolean deleteFile(File fileToDelete)
fileToDelete -
public static void zipDir(String directory,
String zipName)
throws IOException
directory - zipName -
IOException
public static void zipDir(String directory,
ZipOutputStream zos,
String path)
throws IOException
directory - zos - path -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||