protected Writer (Object lock)

Creates a new character-stream writer whose critical sections will synchronize on the given object.

Parameters:
lock     Object to synchronize on