|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.common.util.file.FileUtilities
contains various utilities method related to file use.
Constructor Summary | |
FileUtilities()
|
Method Summary | |
static java.lang.String |
convertFileNameToSystem(java.lang.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 java.lang.String |
convertToUnixFomat(java.lang.String filePath)
|
static void |
copyFile(java.lang.String sourcePath,
java.lang.String destPath)
|
static boolean |
deleteDir(java.io.File dir)
Deletes all files and subdirectories under the specified directory. |
static java.lang.String |
getNameFromCompleteFileName(java.lang.String completeName)
return the name of the file extracted from the specified complete file name. |
static java.lang.String |
getPathFromCompleteFileName(java.lang.String completeName)
return the path extracted from the specified complete file name. |
static void |
moveFile(java.lang.String oldFileName,
java.lang.String newFileName)
move file from old name to new name. |
static byte[] |
readFile(java.io.File file)
|
static byte[] |
readFile(java.lang.String completeFileName)
|
static void |
removeAllFile(java.io.File file,
java.lang.String ext,
boolean recurcif)
remove all file with the specified ext starting at file directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileUtilities()
Method Detail |
public static java.lang.String convertFileNameToSystem(java.lang.String zipFile)
public static boolean deleteDir(java.io.File dir)
public static java.lang.String getPathFromCompleteFileName(java.lang.String completeName)
public static java.lang.String getNameFromCompleteFileName(java.lang.String completeName)
public static void moveFile(java.lang.String oldFileName, java.lang.String newFileName)
public static java.lang.String convertToUnixFomat(java.lang.String filePath)
public static byte[] readFile(java.lang.String completeFileName) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static byte[] readFile(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static final void removeAllFile(java.io.File file, java.lang.String ext, boolean recurcif)
public static final void copyFile(java.lang.String sourcePath, java.lang.String destPath) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |