com.atlassian.jira.web.util
Class FileNameCharacterCheckerUtil
java.lang.Object
com.atlassian.jira.web.util.FileNameCharacterCheckerUtil
- public class FileNameCharacterCheckerUtil
- extends Object
This is a centralized object for checking illegal characters in attachment file names. This is used by the
AttachmentManager and the Screenshot Applet.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INVALID_CHARS
public static final char[] INVALID_CHARS
FileNameCharacterCheckerUtil
public FileNameCharacterCheckerUtil()
assertFileNameDoesNotContainInvalidChars
public String assertFileNameDoesNotContainInvalidChars(String filename)
- This will test the given filename string for any invalid characters. If it contains an invalid
character then the string returned will be the character. A return value of null means that the
string is a valid filename.
- Parameters:
filename
- the filename to be checked.
- Returns:
- null if the filename is valid, else the character that is invalid.
getPrintableInvalidCharacters
public String getPrintableInvalidCharacters()
Copyright © 2002-2006 Atlassian. All Rights Reserved.