protected Writer()
Creates a new character-stream writer whose critical sections will synchronize on the writer itself.
protected Writer(lock: Any?)
Creates a new character-stream writer whose critical sections will synchronize on the given object.
lock
- Object to synchronize on