Definition at line 36 of file FileUtilities.java.
Static Public Member Functions | |
static String | convertFileNameToSystem (String zipFile) |
replace all nom system file separator by system file separator use for windows system to convert zip file name to windews file name | |
static String | getPathFromCompleteFileName (String completeName) |
return the path extracted from the specified complete file name. | |
static String | getNameFromCompleteFileName (String completeName) |
return the name of the file extracted from the specified complete file name. | |
static void | moveFile (String oldFileName, String newFileName) |
move file from old name to new name. | |
static String | concertToUnixFomat (String filePath) |
static byte[] | readFile (String completeFileName) throws FileNotFoundException, IOException |
static byte[] | readFile (File file) throws FileNotFoundException, IOException |
static final void | removeAllFile (File file, String ext, boolean recurcif) |
remove all file with the specified ext starting at file directory. | |
static final void | copyFile (String sourcePath, String destPath) throws FileNotFoundException, IOException |
|
return the name of the file extracted from the specified complete file name. The completeFileName must be conforme to the system file name (path+SystemSeparator+fileName). if the file has not path return the CompleteFileName if the CompleteFileName has no fileName return empty string. Definition at line 81 of file FileUtilities.java. |
|
return the path extracted from the specified complete file name. The completeFileName must be conforme to the system file name (path+separator+fileName). Path end with the System separator. If not path is specified return empty string. Definition at line 66 of file FileUtilities.java. |
|
move file from old name to new name. If new fileExist delete it before move Definition at line 96 of file FileUtilities.java. |
|
remove all file with the specified ext starting at file directory. If recursif is true remove inside sub directory. if ext is null, remove all file. Definition at line 158 of file FileUtilities.java. |