*/publicclassCustomHexUtils{/** * 根据传入的字节数组,返回字符串 * @param length 截取指定长度的数组 */publicstaticStringgetBytes2String(byte[]b,intlength){StringBuilderstringBuffer=newStringBuilder(512);for(inti=0;i<length;++i){Stringhex=Integer.toHexString(b[i]&0xFF);if(hex.length()==1){...