code: 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
      }
    }
docs: Returns a reader for the specified input stream, using specified encoding.
  @param in the input stream to wrap
  @param charset the input stream to wrap
  @return a reader for this input stream