|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.FileUtils
public final class FileUtils
This class provides static functions to load/store the files.
| Method Summary | |
|---|---|
static boolean |
hasFileExtension(File file)
Utility method for checking whether or not the given file has an extension. |
static boolean |
hasFileExtension(String name)
Utility method for checking whether or not the given file name has an extension. |
static String |
removeIllegalCharsFromFileName(String name)
Replaces OS specific illegal characters from any filename with '_', including ( / \n \r \t ) on all operating systems, ( ? * \ < > | " ) on Windows, ( ` ) on unix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean hasFileExtension(File file)
file - The file to check for an extension on.
true if the given file has an extension, otherwise
falsepublic static boolean hasFileExtension(String name)
name - The file name to check for an extension on.
true if the given file name has an extension,
otherwise falsepublic static String removeIllegalCharsFromFileName(String name)
name - the filename to check for illegal characters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||