Class FileUtils
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.util.file.FileUtils
-
public class FileUtils extends java.lang.ObjectThe 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(java.io.File file, java.lang.StringBuffer logBuffer)Delete.static java.util.List<java.lang.String>list(java.lang.String strDirPath, java.lang.String strFileExtension)List.static java.util.List<java.lang.String>list(java.lang.String strDirPath, java.lang.String strFileExtension, boolean bRecursive)List.static java.lang.StringreadFile(java.lang.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(java.io.File file, java.lang.StringBuffer logBuffer)Delete.- Parameters:
file- the filelogBuffer- the log buffer- Returns:
- true, if successful
-
readFile
public static java.lang.String readFile(java.lang.String strFilePath)
Read file.- Parameters:
strFilePath- the str file path- Returns:
- the string
-
list
public static java.util.List<java.lang.String> list(java.lang.String strDirPath, java.lang.String strFileExtension)List.- Parameters:
strDirPath- the str dir pathstrFileExtension- the str file extension- Returns:
- the list
-
list
public static java.util.List<java.lang.String> list(java.lang.String strDirPath, java.lang.String strFileExtension, boolean bRecursive)List.- Parameters:
strDirPath- the str dir pathstrFileExtension- the str file extensionbRecursive- the b recursive- Returns:
- the list
-
-