java字节数组与基础类型的相互转换 byte数组转int类型 byte数组转为long类型 byte数组转为String类型 byte数组转int类型 // byte 数组转为int类型 private static int byteArrayToInt(byte[] b) { return b[3] & 0xFF | (b[2