Class FileNamingHelper
java.lang.Object
com.inductiveautomation.ignition.common.util.FileNamingHelper
Strips characters that are invalid (to the filesystem) on common OSes. Specifically - ASCII control characters 0-31,
 (including CR and LF) and 
"*:/|\<>?, as well as repeated periods.
 Duplicated as a single method in Catapult's FileUtil class- 
Method SummaryModifier and TypeMethodDescriptionstatic StringstripIllegalCharacters(String badfileName) Proxy for stripIllegalCharacters, with anullfallbackstatic StringstripIllegalCharacters(String badFileName, String fallback) Given an input string, returns a string with filesystem invalid characters removed
- 
Method Details- 
stripIllegalCharactersProxy for stripIllegalCharacters, with anullfallback
- 
stripIllegalCharactersGiven an input string, returns a string with filesystem invalid characters removed- Parameters:
- badFileName- cannot be null
- fallback- will be used if stripping illegal characters results in an empty string
- Returns:
- a sanitized string suitable for use on the filesystem, or the fallback
 
 
-