|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.StringUtils
A class of miscellaneous string utilities. All of the methods in this class are static.
Constructor Summary | |
private |
StringUtils()
|
Method Summary | |
static java.lang.String |
getClassName(java.lang.Class clazz)
Get the name of a class; this method returns the last component of the fully qualified name of the given class. |
static boolean |
isAlphaNumeric(java.lang.String text)
Determine if a string consists solely of alphanumeric characters. |
static java.lang.String |
join(java.lang.String[] array,
java.lang.String delimiter)
Join an array of strings into a single string of tokens using the given delimiter. |
static java.lang.String |
justify(java.lang.String text,
int cols)
Left justify a string, wrapping words as necessary. |
static java.lang.String[] |
split(java.lang.String s,
java.lang.String delimiter)
Split a string into a series of tokens based on the given delimiter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private StringUtils()
Method Detail |
public static final java.lang.String justify(java.lang.String text, int cols)
text
- The text to justify.cols
- The number of columns to use.public static final boolean isAlphaNumeric(java.lang.String text)
text
- The string to test.
true
if the string contains only alphanumeric
characters, and false
otherwise.public static final java.lang.String[] split(java.lang.String s, java.lang.String delimiter)
s
- The string to split.delimiter
- A string consisting of characters that should be treated
as delimiters.
join(java.lang.String[], java.lang.String)
public static final java.lang.String join(java.lang.String[] array, java.lang.String delimiter)
array
- The tokens to join.delimiter
- A string to insert between adjacent tokens.
split(java.lang.String, java.lang.String)
public static final java.lang.String getClassName(java.lang.Class clazz)
clazz
- The class.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |