|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.util.StringUtils
Provides string utilities.
| Constructor Summary | |
StringUtils()
|
|
| Method Summary | |
static java.lang.String |
format(boolean left,
char fill,
int size,
java.lang.String text)
Returns a formatted string. |
static void |
format(boolean left,
char fill,
int size,
java.lang.String text,
java.lang.StringBuffer buffer)
Formats a specified string and appends the formatted string to the buffer. |
static int |
indexOfIgnoreCase(java.lang.String string,
java.lang.String substring,
int fromIndex)
Returns the index within the specified string of the first occurrence of the specified substring ignoring case considerations and starting at the specified index. |
static int |
numberOfDigits(java.lang.String text)
Counts the number of digits in the specified text. |
static java.lang.String |
replace(java.lang.String text,
java.lang.String oldCharacters,
java.lang.String newCharacters)
Replaces indicated characters with other characters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringUtils()
| Method Detail |
public static java.lang.String format(boolean left,
char fill,
int size,
java.lang.String text)
left - true means left alignment otherwise rigth alignmentfill - filling character if the specified text is smaller than the resulting sizesize - size of the formatted stringtext - string which should be formated
public static void format(boolean left,
char fill,
int size,
java.lang.String text,
java.lang.StringBuffer buffer)
left - true means left alignment otherwise rigth alignmentfill - filling character if the specified text is smaller than the resulting sizesize - size of the formatted stringtext - string which should be formatedbuffer - buffer where the formatted string will be appended
public static java.lang.String replace(java.lang.String text,
java.lang.String oldCharacters,
java.lang.String newCharacters)
text - string where characters should be replacedoldCharacters - the character to be replaced by newCharacters.newCharacters - the character replacing oldCharacters.
public static int numberOfDigits(java.lang.String text)
text - string
public static int indexOfIgnoreCase(java.lang.String string,
java.lang.String substring,
int fromIndex)
isstring.startsWith(substring, k)
true.
string - any string.substring - any string.fromIndex - the index from which to start the search.
-1 is returned.
java.lang.NullPointerException - if string or substring is
null.
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||