public class FileUtil extends ContextAwareBase
context
Modifier and Type | Method and Description |
---|---|
void |
copy(String src,
String destination) |
static boolean |
createMissingParentDirectories(File file) |
static URL |
fileToURL(File file) |
static boolean |
isParentDirectoryCreationRequired(File file) |
static String |
prefixRelativePath(String prefix,
String path)
Prepends a string to a path if the path is relative.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public FileUtil(Context context)
public static boolean isParentDirectoryCreationRequired(File file)
public static boolean createMissingParentDirectories(File file)
public static String prefixRelativePath(String prefix, String path)
prefix
- string to prepend to the evaluated path if it's not
already absolutepath
- path to evaluatepublic void copy(String src, String destination) throws RolloverFailure
RolloverFailure
Copyright © 2005–2014 QOS.ch. All rights reserved.