|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.maven.utils.file.LuteceFileUtils
public final class LuteceFileUtils
FileUtils
| Method Summary | |
|---|---|
static void |
createFile(java.lang.String strFolderPath,
java.lang.String strFileName,
java.lang.String strFileOutPut)
Create a file. |
static void |
deleteFile(java.lang.String strFolderPath,
java.lang.String strFileName)
Delete a file |
static java.lang.String |
readLastLine(java.lang.String strFile)
Read the last line from the given file |
static void |
writeToFile(java.lang.String strContent,
java.lang.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(java.lang.String strFolderPath,
java.lang.String strFileName,
java.lang.String strFileOutPut)
throws java.io.IOException
strFolderPath - the folder pathstrFileName - the file namestrFileOutPut - the file output
java.io.IOException - exception if there is an error during the deletion
public static void deleteFile(java.lang.String strFolderPath,
java.lang.String strFileName)
throws java.io.IOException
strFolderPath - the folder pathstrFileName - the file name
java.io.IOException - exception if there is an error during the deletionpublic static java.lang.String readLastLine(java.lang.String strFile)
strFile - the file absolute path (ex : /home/filetopath/file.txt)
public static void writeToFile(java.lang.String strContent,
java.lang.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 | |||||||||