Package org.apache.thrift.utils
Class StringUtils
- java.lang.Object
-
- org.apache.thrift.utils.StringUtils
-
public final class StringUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
bytesToHexString(byte[] bytes)
Stringify a byte array to the hex representation for each byte.static java.lang.String
bytesToHexString(byte[] bytes, int offset, int length)
Stringify a portion of the byte array.
-
-
-
Method Detail
-
bytesToHexString
public static java.lang.String bytesToHexString(byte[] bytes)
Stringify a byte array to the hex representation for each byte.- Parameters:
bytes
-- Returns:
- hex string.
-
bytesToHexString
public static java.lang.String bytesToHexString(byte[] bytes, int offset, int length)
Stringify a portion of the byte array.- Parameters:
bytes
- byte array.offset
- portion start.length
- portion length.- Returns:
- hex string.
-
-