Package ch.qos.logback.core.util
Class FileUtil
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.util.FileUtil
-
- All Implemented Interfaces:
ContextAware
@Deprecated(since="2022-01-27") public class FileUtil extends ContextAwareBase
Deprecated.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcopy(String src, String destination)Deprecated.static booleancreateMissingParentDirectories(File file)Deprecated.Creates the parent directories of a file.static URLfileToURL(File file)Deprecated.StringresourceAsString(ClassLoader classLoader, String resourceName)Deprecated.-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
FileUtil
public FileUtil(Context context)
Deprecated.
-
-
Method Detail
-
createMissingParentDirectories
public static boolean createMissingParentDirectories(File file)
Deprecated.Creates the parent directories of a file. If parent directories not specified in file's path, then nothing is done and this returns gracefully.- Parameters:
file- file whose parent directories (if any) should be created- Returns:
trueif either no parents were specified, or if all parent directories were created successfully;falseotherwise
-
resourceAsString
public String resourceAsString(ClassLoader classLoader, String resourceName)
Deprecated.
-
copy
public void copy(String src, String destination) throws RolloverFailure
Deprecated.- Throws:
RolloverFailure
-
-