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.
|
boolean |
checkForIllegalCharacters(java.lang.String text)
Check the passed string whether it contains any of the following characters:
/
<
>
:
"
\
|
?
*
#
%
&
{
}
$
!
'
@
+
´
`
=
|
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.public boolean checkForIllegalCharacters(java.lang.String text)
text - String The text you want to check.true if none of these characters were found.