public class FileUtil extends ContextAwareBase
context
Modifier and Type | Method and Description |
---|---|
void |
copy(String src,
String destination) |
static boolean |
createMissingParentDirectories(File file)
Creates the parent directories of a file.
|
static URL |
fileToURL(File file) |
String |
resourceAsString(ClassLoader classLoader,
String resourceName) |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public FileUtil(Context context)
public static boolean createMissingParentDirectories(File file)
file
- file whose parent directories (if any) should be createdtrue
if either no parents were specified, or if all
parent directories were created successfully; false
otherwisepublic String resourceAsString(ClassLoader classLoader, String resourceName)
public void copy(String src, String destination) throws RolloverFailure
RolloverFailure
Copyright © 2005–2021 QOS.ch. All rights reserved.