public static Reader getInputStreamReader ( InputStream in , String charset ) { try { return new InputStreamReader ( in , charset ) ; } catch ( UnsupportedEncodingException ex ) { throw new RuntimeException ( ex ) ; // shouldn't happen since UTF-8 is supported by all JVMs per spec } }
Returns a reader for the specified input stream using specified encoding .