|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitidus.wt.fastload.cUtilFunctions
Some utility functions, taken from CounterPart, but we don't want to compile counter part classes
Constructor Summary | |
cUtilFunctions()
|
Method Summary | |
static int |
stringToInt(String s)
convert a string to an integer, ignoring conversion errors. |
private static int |
stringToInt(String s,
int errorValue)
convert a string to an integer, returning given value in case of errors. |
static String |
strip(String s)
Strip a string: turn control characters into spaces; remove leading and trailing spaces; compress embedded spaces to a single space. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public cUtilFunctions()
Method Detail |
private static final int stringToInt(String s, int errorValue)
s
- the stringerrorValue
- the number to return if s doesn't seem to be convertiblepublic static final int stringToInt(String s)
s
- the stringpublic static final String strip(String s)
s
- the string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |