public void writeToWriter(Writer out) throws IOException {
  int ch;
  while ((ch=readChar()) >= 0) {
    out.write((char)ch);
  }
}

public void writeToWriter ( Writer out ) throws IOException { int ch ; while ( ( ch = readChar ( ) ) >= 0 ) { out . write ( ( char ) ch ) ; } }
copies this stream to the output stream .
