public class FileUtil extends ContextAwareBase
context| Modifier and Type | Method and Description |
|---|---|
void |
copy(String
|
static boolean |
createMissingParentDirectories(File
Creates the parent directories of a file.
|
static URL |
fileToURL(File
|
String |
resourceAsString(ClassLoader
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic FileUtil(Contextcontext)
public static boolean createMissingParentDirectories(Filefile)
file - file whose parent directories (if any) should be created
true if either no parents were specified, or if all parent directories were created successfully;
false otherwise
public StringresourceAsString(ClassLoader classLoader, String resourceName)
public void copy(Stringsrc, String destination) throws RolloverFailure
RolloverFailure