|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.helpers.FileUtils
public final class FileUtils
File utilities.
Method Summary | |
---|---|
static File |
fileFromURI(URI uri)
Tries to convert the specified URL to a file object. |
static boolean |
isFile(URL url)
|
static void |
mkdir(File dir,
boolean createDirectoryIfNotExisting)
Asserts that the given directory exists and creates it if necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static File fileFromURI(URI uri)
uri
- the URI
public static boolean isFile(URL url)
public static void mkdir(File dir, boolean createDirectoryIfNotExisting) throws IOException
dir
- the directory that shall existcreateDirectoryIfNotExisting
- specifies if the directory shall be created if it does not exist.
IOException
- thrown if the directory could not be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.