code: public static String copyToString(Reader in) throws IOException {
          StringWriter out = new StringWriter();
          copy(in, out);
          return out.toString();
      }
docs: Copy the contents of the given Reader into a String.
  Closes the reader when done.
  
  @param in the reader to copy from
  @return the String that has been copied to
  @throws IOException in case of I/O errors