code: public static String read(InputStream in) {
          InputStreamReader reader;
          try {
              reader = new InputStreamReader(in, "UTF-8");
          } catch (UnsupportedEncodingException e) {
              throw new IllegalStateException(e.getMessage(), e);
          }
          return read(reader);
      }
docs: <p>read.</p>
  
  @param in a {@link java.io.InputStream} object.
  @return a {@link java.lang.String} object.