|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.util.StringUtil
This class includes utility methods to use with String objects
Method Summary | |
static String |
byteArrayToHexString(byte[] b)
Converts a byte array into a hex string |
static byte[] |
hexStringToByteArray(String s)
Converts a hex string into a byte array |
static String |
md5Sum(byte[] source)
Calculates a MD5-sum. |
static String |
md5Sum(String source)
Calculates a MD5-sum. |
static String |
removeSpaces(String s)
Remove all space characters (' ') from a given String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final String removeSpaces(String s)
s
- The String object from which all spaces should be removed
public static final String byteArrayToHexString(byte[] b)
b
- The byte array to convert
public static final byte[] hexStringToByteArray(String s)
s
- The String to convert
public static String md5Sum(byte[] source) throws NoSuchAlgorithmException
source
- The byte array to use for the calculations
NoSuchAlgorithmException
- if the algorithm is not available in the caller's environment.public static String md5Sum(String source) throws NoSuchAlgorithmException
source
- The string to use for the calculations
NoSuchAlgorithmException
- if the algorithm is not available in the caller's environment.
|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |