public class FileUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
STATUS_ERROR
The Constant STATUS_ERROR.
|
static boolean |
STATUS_OK
The Constant STATUS_OK.
|
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
delete(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 String |
readFile(String strFilePath)
Read file.
|
public static final boolean STATUS_OK
public static final boolean STATUS_ERROR
public static boolean delete(File file, StringBuffer logBuffer)
file - the filelogBuffer - the log bufferpublic static String readFile(String strFilePath)
strFilePath - the str file pathpublic static List<String> list(String strDirPath, String strFileExtension)
strDirPath - the str dir pathstrFileExtension - the str file extensionCopyright © 2022 City of Paris. All rights reserved.