|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.mtu.eggplant.util.StringUtils
public final class StringUtils
Some handy utilities for working with strings.
Method Summary | |
---|---|
static String |
searchAndReplace(String source,
String search,
String replace)
Replace all instances of search in source with replace. |
static String |
trimString(String name,
int len)
If the string is longer than len, truncate it and append "..." |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String searchAndReplace(String source, String search, String replace)
public static String trimString(String name, int len)
name
- the stringlen
- the max length for the string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |