code: public static String readContent( Reader in ) throws IOException
      {
          char[] buffer = new char[2048];
          StringBuilder sb = new StringBuilder();
          int read;
          while ((read = in.read( buffer )) != -1)
          {
              sb.append( buffer, 0, read );
          }
  
          return sb.toString();
      }
docs: <p>readContent.</p>
  
  @param in a {@link java.io.Reader} object.
  @return a {@link java.lang.String} object.
  @throws java.io.IOException if any.