Class FileNamingHelper
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.util.FileNamingHelper
 
- 
 public class FileNamingHelper extends java.lang.ObjectStrips 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 SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringstripIllegalCharacters(java.lang.String badfileName)Proxy for stripIllegalCharacters, with anullfallbackstatic java.lang.StringstripIllegalCharacters(java.lang.String badFileName, java.lang.String fallback)Given an input string, returns a string with filesystem invalid characters removed
 
- 
- 
- 
Method Detail- 
stripIllegalCharacterspublic static java.lang.String stripIllegalCharacters(java.lang.String badfileName) Proxy for stripIllegalCharacters, with anullfallback
 - 
stripIllegalCharacterspublic static java.lang.String stripIllegalCharacters(java.lang.String badFileName, java.lang.String fallback)Given 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
 
 
- 
 
-