Here you can find the source of getUTF8(byte[] bytes)
public static String getUTF8(byte[] bytes) throws UnsupportedEncodingException
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { public static String getUTF8(byte[] bytes) throws UnsupportedEncodingException { return new String(bytes, "UTF-8"); }/*from w ww .ja va 2 s. com*/ }