|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.barracuda.plankton.StringUtil
Simple utility functions that work on Strings TODO - can't this be relaced by java.lang.String.replaceAll() [jdk 1.4] - A: probably not; that funtion uses regexps; this one doesn't
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
StringUtil()
|
Method Summary | |
static Calendar |
getElapsed(long elapsed)
get a Calendar representing an elapsed amt of time |
static String |
getElapsedStr(long elapsed)
get a String describing an elapsed amt of time (format: "XX hrs, YY mins, ZZ secs (MMMM millis)") |
static String |
getElapsedStr(long elapsed,
int granularity)
get a String describing an elapsed amt of time (format: "XX hrs, YY mins, ZZ secs"). |
static String |
replace(String sourceStr,
String oldPattern,
String newPattern)
Replace all occurences of a pattern in a String with a new pattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.log4j.Logger logger
Constructor Detail |
public StringUtil()
Method Detail |
public static String replace(String sourceStr, String oldPattern, String newPattern)
sourceStr
- the source stringoldPattern
- the old patternnewPattern
- the new pattern
public static Calendar getElapsed(long elapsed)
public static String getElapsedStr(long elapsed)
public static String getElapsedStr(long elapsed, int granularity)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |