|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.core.utils.AlphaNumeric
public class AlphaNumeric
Convenience classes for parsing and manipulating Strings.
| Constructor Summary | |
|---|---|
AlphaNumeric()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlphaNumeric()
| Method Detail |
|---|
public static String parseAndReplace(String str,
char replacement)
str - string to be convertedreplacement - replacement character
public static String parseAndReplaceExcept(String str,
char replacement,
String except)
str - string to be convertedreplacement - replacement characterexcept - string containing exception characters
public static String parseAndTrim(String str)
str - string to be converted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||