Package org.apache.thrift.utils
Class StringUtils
java.lang.Object
org.apache.thrift.utils.StringUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
bytesToHexString
(byte[] bytes) Stringify a byte array to the hex representation for each byte.static String
bytesToHexString
(byte[] bytes, int offset, int length) Stringify a portion of the byte array.
-
Method Details
-
bytesToHexString
Stringify a byte array to the hex representation for each byte.- Parameters:
bytes
- the byte array to convert to hex string.- Returns:
- hex string.
-
bytesToHexString
Stringify a portion of the byte array.- Parameters:
bytes
- byte array.offset
- portion start.length
- portion length.- Returns:
- hex string.
-