public static class StringUtil.StringReplacer extends Object
| Constructor and Description |
|---|
StringUtil.StringReplacer(String str) |
| Modifier and Type | Method and Description |
|---|---|
String |
replaceString(String toReplace,
String replaceBy)
replace a string in a given String if the replacement string is contained by the string to replace, recursively replace until no ocurrences of the
original remain thus replaceString("a000000", "00", "0") will return "a0" rather than "a000"
|
void |
setReRead(boolean reRead)
set the reread algorithm - if true (the default) the replaced string is checked again.
|
public StringUtil.StringReplacer(String str)
str - public void setReRead(boolean reRead)
reRead - public String replaceString(String toReplace, String replaceBy)
toReplace - String to match and replacereplaceBy - String to insert for toReplace, null if nothing should be insertedCopyright © 2013. All Rights Reserved.