public class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteDirectory(File file) |
static String |
readFile(File file)
Read a given file and returns the content of the file as a string.
|
static void |
writeDirectory(String configurations,
String backupPath,
Set<String> fileSet) |
public static String readFile(File file) throws ConfigParserException
file - File to be readConfigParserException - If file doesn't exist or is not a file or if some IO error occurs.public static void deleteDirectory(File file) throws ConfigParserException
ConfigParserExceptionpublic static void writeDirectory(String configurations, String backupPath, Set<String> fileSet) throws ConfigParserException
ConfigParserExceptionCopyright © 2020 WSO2. All rights reserved.