public class FileNameUtils extends Object
| Constructor and Description |
|---|
FileNameUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
guessMimeType(String filename)
Find the corresponding mime type for the file name.
|
static String |
sanitize(String filename)
Remove all weird characters while trying to ensure
the sanitize filename is close to the original one:
accent are stripped, spaces are replaced by -,
upper case chars are converted to lower case.
|
public static String sanitize(String filename)
Copyright © 2018 Coreoz. All rights reserved.