public class FileUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENCODING |
| Constructor and Description |
|---|
FileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteSafely(File file)
Attempts to delete a file, if fails tries again on exit
|
static URL |
loadResource(String resourcePath) |
static String |
removeExtension(String fileName)
Returns the string minus the extension
|
static String |
resolveResourcePath(String resourcePath) |
static void |
writeToFile(File file,
String contents) |
public static final String DEFAULT_ENCODING
public static void writeToFile(File file, String contents) throws IOException
IOExceptionpublic static void deleteSafely(File file)
file - The file to deletepublic static String removeExtension(String fileName)
fileName - The filenameCopyright © 2015. All rights reserved.