public final class FileUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
delete(File file)
Deletes a file.
|
static String |
getBitBucket()
Return the bit bucket for the OS.
|
static String |
getFileExtension(String fileName)
Returns the (lowercase) file extension for a specified file.
|
static File |
getTempFile(String prefix,
String extension)
Generates a new temporary file name that is guaranteed to be unique.
|
public static String getFileExtension(String fileName)
fileName - the file name to retrieve the file extension from.public static boolean delete(File file)
file - the File to deletepublic static File getTempFile(String prefix, String extension) throws IOException
prefix - the prefix for the file name to generateextension - the extension of the generated file nameIOException - thrown if the temporary folder could not be createdpublic static String getBitBucket()
Copyright? 2012-15 Jeremy Long. All Rights Reserved.