org.alfresco.util
Class FileNameValidator
org.alfresco.util.FileNameValidator
@org.alfresco.api.AlfrescoPublicApi
public class FileNameValidator
Static checker for valid file names.
Author:
-
Derek Hulley
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILENAME_ILLEGAL_REGEX
public static final String FILENAME_ILLEGAL_REGEX -
The bad file name pattern.
See Also:
-
FileNameValidator
public FileNameValidator()
isValid
public static boolean isValid(String name)
getValidFileName
-
Replaces illegal filename characters with '_'