Here you can find the source of toAsciiString(byte[] output)
public static String toAsciiString(byte[] output)
//package com.java2s; //License from project: Apache License public class Main { public static String toAsciiString(byte[] output) { char[] chars = new char[output.length]; for (int i = 0; i < output.length; i++) { chars[i] = (char) output[i]; }/* w w w. j a va2 s. c om*/ return new String(chars); } }