Here you can find the source of getUTF8InputStreamReader(InputStream stream)
public static InputStreamReader getUTF8InputStreamReader(InputStream stream)
//package com.java2s; //License from project: LGPL import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; public class Main { public static InputStreamReader getUTF8InputStreamReader(InputStream stream) { return getInputStreamReader(stream, StandardCharsets.UTF_8); }//from w w w. j av a2 s . c o m public static InputStreamReader getInputStreamReader(InputStream stream, Charset charset) { return new InputStreamReader(stream, charset); } }