Here you can find the source of getReader(InputStream in)
public static BufferedReader getReader(InputStream in) throws IOException
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { private static String charEncoding = "UTF-8"; public static BufferedReader getReader(InputStream in) throws IOException { return new BufferedReader(new InputStreamReader(in, getCharEncoding())); }// ww w .j a v a2 s. c o m public static String getCharEncoding() { return charEncoding; } }