|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.util.tools.shared.StringUtils
public class StringUtils
String utility methods.
Field Summary | |
---|---|
static char[] |
HEX_CHARS
|
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static void |
hex4(char c,
java.lang.StringBuffer sb)
A 4-digit hex result. |
static java.lang.String |
javaScriptString(java.lang.String value)
Generate JavaScript code that evaluates to the supplied string. |
static java.lang.String |
toHexString(byte[] bytes)
Returns a string representation of the byte array as a series of hexadecimal characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static char[] HEX_CHARS
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static void hex4(char c, java.lang.StringBuffer sb)
public static java.lang.String javaScriptString(java.lang.String value)
com.google.gwt.dev.js.rhino.ScriptRuntime#escapeString(String)
. The difference is that we quote with either " or ' depending on
which one is used less inside the string.
public static java.lang.String toHexString(byte[] bytes)
bytes
- byte array to convert
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |