Here you can find the source of getBufferedReader(InputStream inputStream, String charsetName)
private static BufferedReader getBufferedReader(InputStream inputStream, String charsetName) throws UnsupportedEncodingException
//package com.java2s; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; public class Main { private static BufferedReader getBufferedReader(InputStream inputStream, String charsetName) throws UnsupportedEncodingException { return new BufferedReader(new InputStreamReader(inputStream, charsetName)); }/*from w w w. j a v a 2s .c o m*/ }