public class FileUtil extends ContextAwareBase
context| Modifier and Type | Method and Description |
|---|---|
void |
copy(java.lang.String src,
java.lang.String destination) |
static boolean |
createMissingParentDirectories(java.io.File file) |
static java.net.URL |
fileToURL(java.io.File file) |
static boolean |
isParentDirectoryCreationRequired(java.io.File file) |
static java.lang.String |
prefixRelativePath(java.lang.String prefix,
java.lang.String path)
Prepends a string to a path if the path is relative.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextpublic FileUtil(Context context)
public static java.net.URL fileToURL(java.io.File file)
public static boolean isParentDirectoryCreationRequired(java.io.File file)
public static boolean createMissingParentDirectories(java.io.File file)
public static java.lang.String prefixRelativePath(java.lang.String prefix,
java.lang.String path)
prefix - string to prepend to the evaluated path if it's not
already absolutepath - path to evaluatepublic void copy(java.lang.String src,
java.lang.String destination)
throws RolloverFailure
RolloverFailure