code: public void writeToWriter(Writer out) throws IOException
    {
      int ch;
  
      while ((ch = readChar()) >= 0) {
        out.write((char) ch);
      }
    }
docs: Copies this stream to the output stream.
  
  @param out destination writer