Top Fields Constructors Methods
ch.qos.logback.core.util

public Class FileUtil

extends ContextAwareBase
Class Inheritance
Imports
ch.qos.logback.core.Context, ch.qos.logback.core.rolling.RolloverFailure, ch.qos.logback.core.spi.ContextAwareBase, java.io.*, java.net.MalformedURLException, .URL, .URLConnection

Field Summary

Modifier and TypeField and Description
pack-priv static final int
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
context

Constructor Summary

AccessConstructor and Description
public
FileUtil(Context context)

Method Summary

Modifier and TypeMethod and Description
public void
copy(String src, String destination)

public static boolean

Returns:

true if either no parents were specified, or if all parent directories were created successfully; false otherwise
createMissingParentDirectories
(File
file whose parent directories (if any) should be created
file
)

Creates the parent directories of a file.

public static URL
public String
resourceAsString(ClassLoader classLoader, String resourceName)

Inherited from ch.qos.logback.core.spi.ContextAwareBase:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextgetDeclaredOrigingetStatusManagersetContext

Field Detail

BUF_SIZEback to summary
pack-priv static final int BUF_SIZE

Constructor Detail

FileUtilback to summary
public FileUtil(Context context)

Method Detail

copyback to summary
public void copy(String src, String destination) throws RolloverFailure
createMissingParentDirectoriesback to summary
public static boolean createMissingParentDirectories(File file)

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

file whose parent directories (if any) should be created

Returns:boolean

true if either no parents were specified, or if all parent directories were created successfully; false otherwise

fileToURLback to summary
public static URL fileToURL(File file)
resourceAsStringback to summary
public String resourceAsString(ClassLoader classLoader, String resourceName)