Crossfire JXClient, Trunk
|
Static Public Member Functions | |
static String | quoteName (@NotNull final String name) |
Private Member Functions | |
FilenameUtils () | |
Static Private Attributes | |
static final String | REPLACEMENT_CHARACTER = "_" |
static final Pattern | UNSAFE_FILENAME_CHARACTERS = Pattern.compile("[^a-zA-Z0-9_.]") |
Utility class for manipulating filenames.
Definition at line 32 of file FilenameUtils.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 51 of file FilenameUtils.java.
|
static |
Converts a file name to a "safe" form. The returned file name will not contain any "unsafe" characters (see UNSAFE_FILENAME_CHARACTERS), and it will not be empty.
name | the file name to convert |
Definition at line 62 of file FilenameUtils.java.
References com.realtime.crossfire.jxclient.util.FilenameUtils.REPLACEMENT_CHARACTER, and com.realtime.crossfire.jxclient.util.FilenameUtils.UNSAFE_FILENAME_CHARACTERS.
Referenced by com.realtime.crossfire.jxclient.faces.FileCache.getImageFileName().
|
staticprivate |
Replaces "unsafe" characters in file names (see UNSAFE_FILENAME_CHARACTERS).
Definition at line 39 of file FilenameUtils.java.
Referenced by com.realtime.crossfire.jxclient.util.FilenameUtils.quoteName().
|
staticprivate |
Matches all characters that are considered "unsafe" for file names. These characters will be replaced with REPLACEMENT_CHARACTER.
Definition at line 46 of file FilenameUtils.java.
Referenced by com.realtime.crossfire.jxclient.util.FilenameUtils.quoteName().