public class FilenameUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static char[] |
RESERVED_FILENAME_CHARACTERS
Reserved characters
|
| Constructor and Description |
|---|
FilenameUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
normalize(String name)
Scans the given file name for reserved characters on different OSs and
file systems and returns a sanitized version of the name with the
reserved chars replaced by their hexadecimal value.
|
public static final char[] RESERVED_FILENAME_CHARACTERS
public static String normalize(String name)
why?.zip will be converted into why%3F.zipname - the file name to be normalized - NOT NULLIllegalArgumentException - if name is nullCopyright © 2007–2015 The Apache Software Foundation. All rights reserved.