假设data为字节数组(byteArray) , 需要将其转化为string字符串

代码:

System.out.println(new String(data, "UTF-8"));