| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | |
| public static String | |
| public static String | Returns: String Sanitized file nameFilename to remove characters from fileName)Remove problematic characters from filename and replace them with '_' |
| FilenameUtil | back to summary |
|---|---|
| public FilenameUtil() | |
| concat | back to summary |
|---|---|
| public static String concat(String basePath, String fullFilenameToAdd) Concatenates a filename to a base path using normal command line style rules. This method uses the operating system rules to determine the path separator.
The returned path will be | |
| getDirectory | back to summary |
|---|---|
| public static String getDirectory(String filename) If the path is a file, return everything up to the file. If the path is a directory, return the directory.
The returned path will be | |
| normalize | back to summary |
|---|---|
| public static String normalize(String filename) Normalizes a path, removing double and single dot path steps as well as standardizing on "/" for a slash.
| |
| sanitizeFileName | back to summary |
|---|---|
| public static String sanitizeFileName(String fileName) Remove problematic characters from filename and replace them with '_'
| |