Class FileUtils
java.lang.Object
fr.paris.lutece.plugins.releaser.util.file.FileUtils
The Class FileUtils.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe Constant STATUS_ERROR.static final booleanThe Constant STATUS_OK. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandelete(File file, StringBuffer logBuffer) Delete.List.List.static StringRead file.
-
Field Details
-
STATUS_OK
public static final boolean STATUS_OKThe Constant STATUS_OK.- See Also:
-
STATUS_ERROR
public static final boolean STATUS_ERRORThe Constant STATUS_ERROR.- See Also:
-
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
delete
Delete.- Parameters:
file- the filelogBuffer- the log buffer- Returns:
- true, if successful
-
readFile
Read file.- Parameters:
strFilePath- the str file path- Returns:
- the string
-
list
List.- Parameters:
strDirPath- the str dir pathstrFileExtension- the str file extension- Returns:
- the list
-
list
List.- Parameters:
strDirPath- the str dir pathstrFileExtension- the str file extensionbRecursive- the b recursive- Returns:
- the list
-