|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.util.StringUtil
public class StringUtil
An assortment of string utilities to close the gap to J2SE 1.4
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
join(java.util.List list,
java.lang.String delimiter)
Joins elements in List with a delimiter String |
static java.lang.String |
replace(java.lang.String target,
java.lang.String from,
java.lang.String to)
Replaces a String within a String |
static java.lang.String[] |
split(java.lang.String s,
java.lang.String seperator)
custom string splitting function as CDC/Foundation does not include String.split(); |
static java.lang.String |
squeeze(java.lang.String source)
Remove extra white spaces |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static java.lang.String[] split(java.lang.String s,
java.lang.String seperator)
s - Input Stringseperator -
public static java.lang.String replace(java.lang.String target,
java.lang.String from,
java.lang.String to)
String within a String
target - String where replacement needs to be donefrom - String to replace fromto - String to replace to
public static java.lang.String join(java.util.List list,
java.lang.String delimiter)
List with a delimiter String
list - delimiter -
public static java.lang.String squeeze(java.lang.String source)
source -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||