|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.multisoftgroup.jerry.webchat.util.StringUtils
public class StringUtils
A collection of utility methods for String objects.
| Method Summary | |
|---|---|
static byte[] |
decodeBase64(String data)
Decodes a base64 String. |
static String |
encodeBase64(byte[] data)
Encodes a byte array into a base64 String. |
static String |
encodeBase64(String data)
Encodes a String as a base64 String. |
static String |
randomString(int length)
Returns a random String of numbers and letters (lower and upper case) of the specified length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String encodeBase64(String data)
data - a String to encode.
public static String encodeBase64(byte[] data)
data - a byte array to encode.
public static byte[] decodeBase64(String data)
data - a base64 encoded String to decode.
public static final String randomString(int length)
The specified length must be at least one. If not, the method will return null.
length - the desired length of the random String to return.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||