public class FileUtils extends Object
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyClassPathResource(String classPathResourceName,
String fileSystemDirectoryName) |
static URL |
getUrl(File file)
Creates an URL that points to the given file.
|
static void |
writeStringToFile(File file,
String string)
Writes the given string to the given file
|
public static void copyClassPathResource(String classPathResourceName, String fileSystemDirectoryName)
public static URL getUrl(File file)
file - The file, not nullpublic static void writeStringToFile(File file, String string) throws IOException
file - the file to write, not nullstring - the string, not nullIOExceptionCopyright © 2016. All Rights Reserved.