| java.lang.Object org.ow2.easybeans.util.files.FileUtils
FileUtils | final public class FileUtils (Code) | | This class manages operation done many times on files, like copying them.
author: Florent Benoit |
copyDirectory | public static void copyDirectory(File src, File dest) throws FileUtilsException(Code) | | Copy a directory recursively.
Parameters: src - source directory Parameters: dest - dest directory throws: FileUtilsException - if the copy of the directory failed |
delete | public static boolean delete(String path)(Code) | | Parameters: path - file/directory to be deleted true if deletion was OK |
delete | public static boolean delete(File f)(Code) | | Parameters: f - file/directory to be deleted true if deletion was OK |
dump | public static void dump(InputStream in, File entryFile) throws FileUtilsException(Code) | | Write the given input stream in the given file.
Parameters: in - the inputStream to copy. Parameters: entryFile - the file where the inputStream must be dumped. throws: FileUtilsException - if the dump failed. |
unpack | public static void unpack(JarFile packedJar, File dest) throws FileUtilsException(Code) | | Unpack the source archive in a given directory and returns directory
directory created.
Parameters: packedJar - source JarFile to be unpacked Parameters: dest - the destination folder throws: FileUtilsException - When unpack fails |
|
|