public class FileUtils extends Object
Static utility methods for dealing with files
Constructor and Description |
---|
FileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteRecursively(File folder)
Recursively deletes a folder and all its content
|
static boolean |
isSafeFileName(String name)
Checks if string can be used as file name
|
static boolean |
isSafeFilePath(String path)
Checks if string can be used as file path
|
static String |
safeFileName(String name)
Creates a valid file name from the given string
|
public static String safeFileName(String name)
name
- public static boolean isSafeFileName(String name)
name
- public static boolean isSafeFilePath(String path)
path
- public static void deleteRecursively(File folder) throws IOException
folder
- IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.