Here you can find the source of toBufferedReader(InputStream is, String charset)
public static BufferedReader toBufferedReader(InputStream is, String charset) throws UnsupportedEncodingException
//package com.java2s; //License from project: Open Source License import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; public class Main { public static BufferedReader toBufferedReader(InputStream is) throws UnsupportedEncodingException { return new BufferedReader(new InputStreamReader(is, "UTF-8")); }/* w w w . j a v a 2 s .c om*/ public static BufferedReader toBufferedReader(InputStream is, String charset) throws UnsupportedEncodingException { return new BufferedReader(new InputStreamReader(is, charset)); } }