Class FileUtils
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.util.file.FileUtils
-
public class FileUtils extends Object
The Class FileUtils.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanSTATUS_ERRORThe Constant STATUS_ERROR.static booleanSTATUS_OKThe Constant STATUS_OK.
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleandelete(File file, StringBuffer logBuffer)Delete.static List<String>list(String strDirPath, String strFileExtension)List.static List<String>list(String strDirPath, String strFileExtension, boolean bRecursive)List.static StringreadFile(String strFilePath)Read file.
-
-
-
Field Detail
-
STATUS_OK
public static final boolean STATUS_OK
The Constant STATUS_OK.- See Also:
- Constant Field Values
-
STATUS_ERROR
public static final boolean STATUS_ERROR
The Constant STATUS_ERROR.- See Also:
- Constant Field Values
-
-
Method Detail
-
delete
public static boolean delete(File file, StringBuffer logBuffer)
Delete.- Parameters:
file- the filelogBuffer- the log buffer- Returns:
- true, if successful
-
readFile
public static String readFile(String strFilePath)
Read file.- Parameters:
strFilePath- the str file path- Returns:
- the string
-
list
public static List<String> list(String strDirPath, String strFileExtension)
List.- Parameters:
strDirPath- the str dir pathstrFileExtension- the str file extension- Returns:
- the list
-
-