Here you can find the source of byte2String(byte[] is)
public static String byte2String(byte[] is) throws Exception
//package com.java2s; public class Main { public static String byte2String(byte[] is) throws Exception { String srt = new String(is, "UTF-8"); return srt; }/*from w w w . java 2 s. c o m*/ }