public class FileUtilsExtended extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.gcube.common.core.utils.logging.GCUBELog |
logger
Class logger.
|
| Constructor and Description |
|---|
FileUtilsExtended() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFile(File source,
File target)
Copy the source file to the the target file
|
static String |
dateDirectory() |
static String |
fileToString(String absolutePath) |
static boolean |
recursiveDeleteDirectory(File directory)
Remove Recursively a directory
|
static void |
stringToFile(String str,
File targetFile) |
static void |
writeXmlToFile(Document document,
File file) |
protected static final org.gcube.common.core.utils.logging.GCUBELog logger
public static boolean recursiveDeleteDirectory(File directory)
directory - to removepublic static void stringToFile(String str, File targetFile) throws IOException
str - stringtargetFile - Target FileIOException - if failspublic static String fileToString(String absolutePath) throws Exception
absolutePath - of the FileException - if failspublic static String dateDirectory()
public static void writeXmlToFile(Document document, File file) throws Exception
document - xml documentfile - output fileException - if failsCopyright © 2014. All Rights Reserved.