Here you can find the source of byteToString(int[] byteData)
private static String byteToString(int[] byteData)
//package com.java2s; public class Main { private static String byteToString(int[] byteData) { String str = ""; for (int i = 0; i < 4; i++) { int count = 0; for (int j = 0; j < 16; j++) { int pow = 1; for (int m = 15; m > j; m--) { pow *= 2;/*w w w .java 2 s. c om*/ } count += byteData[16 * i + j] * pow; } if (count != 0) { str += "" + (char) (count); } } return str; } }