|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.lang.StringUtils
org.mule.util.StringUtils
StringUtils contains useful methods for manipulating Strings.
| Constructor Summary | |
StringUtils()
|
|
| Method Summary | |
static byte[] |
hexStringToByteArray(String hex)
Convert a hexadecimal string into its byte representation. |
static String |
repeat(char c,
int len)
Like #repeat(String, int) but with a single character as argument. |
static String[] |
splitAndTrim(String string,
String delim)
Like StringUtils, but
additionally trims whitespace from the result tokens. |
static String |
toHexString(byte[] bytes)
|
static String |
toHexString(byte[] bytes,
boolean uppercase)
Convert a byte array to a hexadecimal string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringUtils()
| Method Detail |
public static String[] splitAndTrim(String string,
String delim)
StringUtils, but
additionally trims whitespace from the result tokens.
public static byte[] hexStringToByteArray(String hex)
hex - The hexadecimal string.
null if the hex String is null.
public static String repeat(char c,
int len)
#repeat(String, int) but with a single character as argument.
public static String toHexString(byte[] bytes)
toHexString(byte[])
public static String toHexString(byte[] bytes,
boolean uppercase)
bytes - The bytes to format.uppercase - When true creates uppercase hex characters
instead of lowercase (the default).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||