@Component
public class StringUtilities
extends java.lang.Object
| Constructor and Description |
|---|
StringUtilities() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildString(java.lang.String... args)
Converts a sequence of Strings, for example from a list, into a concatenated String.
|
java.lang.String |
pathSecureText(java.lang.String text)
Remove commonly forbidden characters from the passed string, making the resulting String safe to use for files, paths,
directories etc.
|
public java.lang.String buildString(java.lang.String... args)
args - Strings that will be concatenated into one stringpublic java.lang.String pathSecureText(java.lang.String text)
( ) or a DOT( . ), they are also removed.text - String The text which you want to be made safe.String The passed String safe for use for files, paths, directories etc.