public class FileUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFile(java.lang.String fromFile,
java.lang.String toFile) |
static java.net.URL |
findFile(java.lang.String path)
Finds a file relative to current working directory or classpath.
|
static java.net.URL |
findFile(java.lang.String path,
java.lang.String systemProperty,
boolean updateProperty)
Finds a file thats location might be stored in a system property.
|
static java.net.URL |
findFile(java.lang.String file,
java.net.URL baseFile)
Finds a file thats location might be relative to directory of another file.
|
static java.io.File[] |
listFiles(java.io.File directory,
java.lang.String namePattern,
boolean recursive) |
public static final void copyFile(java.lang.String fromFile,
java.lang.String toFile)
throws java.io.IOException
java.io.IOExceptionpublic static final java.io.File[] listFiles(java.io.File directory,
java.lang.String namePattern,
boolean recursive)
public static java.net.URL findFile(java.lang.String file,
java.net.URL baseFile)
file - URL or relative path to working directory or classpath.baseFile - URLpublic static java.net.URL findFile(java.lang.String path)
path - Path of file.public static java.net.URL findFile(java.lang.String path,
java.lang.String systemProperty,
boolean updateProperty)
path - URL or relative path to working directory or classpath.systemProperty - Key of system property.updateProperty - Update system property.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.