странно как-то, для класса Integer есть метод toHexString. а вот для Byte - нету О_о
пришлось самопал ляпать:
private static String toHex(byte bValue) {
int iValue = bValue;
if (bValue <0) iValue+=256;
String strRes = Integer.toHexString(iValue).toUpperCase();
if (strRes.length() < 2
(
Read more... )