org.apache.ivy.util
public final class StringUtils extends Object
Method Summary | |
---|---|
static String | decrypt(String str)
Decrypts a string encrypted with encrypt.
|
static String | encrypt(String str)
Encrypt the given string in a way which anybody having access to this method algorithm can
easily decrypt. |
static String | getErrorMessage(Throwable t)
Returns the error message associated with the given Throwable. |
static String | getStackTrace(Exception e)
Returns the exception stack trace as a String.
|
static String | join(Object[] objs, String sep)
Joins the given object array in one string, each separated by the given separator.
|
static String | repeat(String str, int count) |
static String | uncapitalize(String string) |
Parameters: str the encrypted string to decrypt
Returns: The decrypted string.
Parameters: str the string to encrypt
Returns: the encrypted version of the string
Parameters: t the throwable to get the error message from
Returns: the error message of the given exception
Parameters: e the exception to get the stack trace from.
Returns: the exception stack trace
join(new String[] {"one", "two", "three"}, ", ") -> "one, two, three"
Parameters: objs The array of objects (toString()
is used). sep The separator to use.
Returns: The concatinated string.