com.lti.utils
Class StringUtils
java.lang.Object
com.lti.utils.StringUtils
public final class StringUtils
- extends java.lang.Object
String utilties.
TODO: move to src.utils/com.lti.utils.
- Author:
- Ken Larson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtils
public StringUtils()
byteToHexString_ZeroPad
public static java.lang.String byteToHexString_ZeroPad(byte b)
replaceSpecialUrlChars
public static java.lang.String replaceSpecialUrlChars(java.lang.String raw)
replaceSpecialUrlChars
public static java.lang.String replaceSpecialUrlChars(java.lang.String raw,
boolean isPath)
restoreSpecialURLChars
public static java.lang.String restoreSpecialURLChars(java.lang.String cooked)
dump
public static java.lang.String dump(byte[] bytes,
int offset,
int byteslen)
- Dump to string using a debugger-like format - both hex and ascii.
Bytes dumped will be byteslen - offset.
byteArrayToHexString
public static java.lang.String byteArrayToHexString(byte[] array)
byteArrayToHexString
public static java.lang.String byteArrayToHexString(byte[] array,
int len)
byteArrayToHexString
public static java.lang.String byteArrayToHexString(byte[] array,
int len,
int offset)
hexStringToByteArray
public static byte[] hexStringToByteArray(java.lang.String s)
- Throws:
java.lang.NumberFormatException
hexStringToByte
public static byte hexStringToByte(java.lang.String s)
- Throws:
java.lang.NumberFormatException
byteArrayToBase64String
public static java.lang.String byteArrayToBase64String(byte[] value)