Package com.ning.http.util
Class StringUtils
java.lang.Object
com.ning.http.util.StringUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]static ByteBuffercharSequence2ByteBuffer(CharSequence cs, Charset charset) static byte[]charSequence2Bytes(CharSequence sb, Charset charset) static StringBuilderBEWARE: MUSN'T APPEND TO ITSELF!static StringtoHexString(byte[] bytes) static StringtoHexString(byte[] bytes, boolean uppercase) Convert a byte array to a hexadecimal string.
-
Method Details
-
stringBuilder
BEWARE: MUSN'T APPEND TO ITSELF!- Returns:
- a pooled StringBuilder
-
charSequence2ByteBuffer
-
byteBuffer2ByteArray
-
charSequence2Bytes
-
toHexString
- See Also:
-
toHexString
Convert a byte array to a hexadecimal string.- Parameters:
bytes- The bytes to format.uppercase- Whentruecreates uppercase hex characters instead of lowercase (the default).- Returns:
- A hexadecimal representation of the specified bytes.
-