public void close() throws IOException {
synchronized (this) {
    writer.close();
  }
}

public void close ( ) throws IOException { synchronized ( this ) { writer . close ( ) ; } }
causes this writer to be closed .
