Here you can find the source of fromUTF8(byte[] b)
protected static String fromUTF8(byte[] b)
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { protected static String fromUTF8(byte[] b) { try {/*from w ww . j a va 2 s.c o m*/ return new String(b, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new IllegalStateException("can't happen"); } } }