HexUtils
1、
/**
* 十六进制字符串转为字符串
/
public static String hexStringToString(String s){
byte[] baKeyword = new byte[s.length()/2];
for(int i = 0; i < baKeyword.length; i++){
try{
baKeyword[i] = (byte)(0xff & Integer.parseInt(s.substring(i2, i*2+2),16));
}catch(Exception e){
e.printStackTrace();
}
}
try{
s = new String(baKeyword, “gbk”);//UTF-16le:Not
}catch (Exception e1){
e1.printStackTrace();
}
return s;
}