public abstract class AlphaNumeric extends Object
Constructor and Description |
---|
AlphaNumeric() |
Modifier and Type | Method and Description |
---|---|
static String |
parseAndReplace(String str,
char replacement)
Any character in the passed string which does not match one of the
following values is replaced by the specified replacement character.
|
static String |
parseAndReplaceExcept(String str,
char replacement,
String except)
Any character in the passed string which does not match one of the
following values is replaced by the specified replacement character,
unless it is contained in the exception string.
|
static String |
parseAndTrim(String str)
Any character in the passed string which does not match one of the
following values is replaced by an Ascii space and then trimmed from the
resulting string.
|
public static String parseAndReplace(String str, char replacement)
str
- string to be convertedreplacement
- replacement characterpublic static String parseAndReplaceExcept(String str, char replacement, String except)
str
- string to be convertedreplacement
- replacement characterexcept
- string containing exception characterspublic static String parseAndTrim(String str)
str
- string to be convertedCopyright © 2021. All rights reserved.