|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.common.StringUtils
Miscellaneous string utilities.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
Constructor Summary | |
StringUtils()
|
Method Summary | |
static java.lang.CharSequence |
removeDuplicateWhitespace(java.lang.CharSequence inputStr)
Removes all contiguous whitespace characters, replacing them with a single space. |
static java.lang.String |
stringArrayToString(java.lang.String[] array,
java.lang.String separator)
Conjoin the strings in an array into a single string delimited by a separator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
Constructor Detail |
public StringUtils()
Method Detail |
public static java.lang.String stringArrayToString(java.lang.String[] array, java.lang.String separator)
array
- The strings to be conjoined.separator
- The string to be used to conjoin the strings.
""
if array
is null
.public static java.lang.CharSequence removeDuplicateWhitespace(java.lang.CharSequence inputStr)
inputStr
- Characters from which whitespace is to be filtered.
java.lang.IllegalArgumentException
- if inputStr
is
null
.
ExternalModuleException
- if regular
expressions used to effect the replacement are not legal.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |