|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.form.utils.FileUtils
public final class FileUtils
FileUtils
| Method Summary | |
|---|---|
static String |
buildFileName(String strFileName,
String strFormatExtension)
Build the file name |
static void |
createFile(String strFolderPath,
String strFileName,
String strFileOutPut,
String strEncoding)
Create a file |
static void |
deleteFile(String strFolderPath,
String strFileName)
Delete a file |
static String |
readLastLine(String strFile)
Read the last line from the given file |
static void |
writeToFile(String strContent,
String strFile)
Write to the given file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void createFile(String strFolderPath,
String strFileName,
String strFileOutPut,
String strEncoding)
throws IOException
strFolderPath - the folder pathstrFileName - the file namestrFileOutPut - the file outputstrEncoding - the encoding
IOException - exception if there is an error during the deletion
public static void deleteFile(String strFolderPath,
String strFileName)
throws IOException
strFolderPath - the folder pathstrFileName - the file name
IOException - exception if there is an error during the deletion
public static String buildFileName(String strFileName,
String strFormatExtension)
strFileName - the name of the filestrFormatExtension - the format extension
public static String readLastLine(String strFile)
strFile - the file absolute path (ex : /home/filetopath/file.txt)
public static void writeToFile(String strContent,
String strFile)
strContent - the content to writestrFile - the file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||