|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nu.staldal.lsp.framework.Utils
public final class Utils
Miscellaneous static utility methods.
Method Summary | |
---|---|
static java.lang.String |
escapeJavascriptString(java.lang.CharSequence s)
Escape a string for a Javascript literal. |
static int |
parseInteger(java.lang.String s,
int err)
Parse a string as an integer. |
static java.util.List<java.lang.String> |
splitString(java.lang.CharSequence s,
char delim)
Split a string into a list of substrings using a specified character as delimiter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int parseInteger(java.lang.String s, int err)
null
.
s
- the string to parseerr
- the integer to return if the string does not contain
any valid integer
public static java.util.List<java.lang.String> splitString(java.lang.CharSequence s, char delim)
s
- the string to splitdelim
- the delimiter character
public static java.lang.String escapeJavascriptString(java.lang.CharSequence s)
s
- the string to escape
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |