code: public void generateOutput(Writer outputWriter) throws IOException {
          String s = generateOutput();
          outputWriter.write(s);
      }
docs: Generates the HTML page and writes it to a character stream.
  
  @param outputWriter a character stream (<code>writer</code>) to which the HTML page will be written.
  @throws IOException when an i/o error occurs while writing to the stream.