public final class StringUtils extends Object
Modifier | Constructor and Description |
---|---|
private |
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
encode(String url)
Encode an url using UTF-8 encoding, except that spaces are encoded using %20
|
static String |
generateKey()
Generates a unique String key, based on System.currentTimeMillis()
|
static String |
md5Base64(String password)
Encrypt a password by using first MD5 Hash and base64 encoding.
|
static Collection<String> |
stringToCollection(String values)
Extract String values from a comma seprated list.
|
static String[] |
stringToStringArray(String values)
Extract String values from a comma seprated list.
|
private StringUtils()
public static Collection<String> stringToCollection(String values)
values
- the comma separated listpublic static String[] stringToStringArray(String values)
values
- the comma separated listpublic static String generateKey()
public static String md5Base64(String password)
password
- The password to be encrypted.