| java.lang.Object com.rift.coad.lib.common.FileUtil
FileUtil | public class FileUtil (Code) | | This class is responsible for supplying simple file utilities
author: Brett Chaldecott |
Method Summary | |
public static void | copyFile(File source, File target) This method copies a file from the source to the target. | public static void | delTargetRecursive(File target) | public static File[] | filter(File[] files, String suffix) This method filters the file list and returns a list of containing only
jar files. |
copyFile | public static void copyFile(File source, File target) throws CommonException(Code) | | This method copies a file from the source to the target.
Parameters: source - The source file to copy. Parameters: target - The target the file must be copied to. exception: CommonException - |
delTargetRecursive | public static void delTargetRecursive(File target) throws CommonException(Code) | | This method deletes the target recursively
Parameters: target - The target to delete. exception: CommonException - |
filter | public static File[] filter(File[] files, String suffix)(Code) | | This method filters the file list and returns a list of containing only
jar files.
The filtered list of files. Parameters: files - The unfiltered list of files. Parameters: suffix - The suffix to filter the file list on. |
|
|