Fields
| Name | Description |
|---|---|
| lock | The object used to synchronize operations on this stream. |
Constructors
| Name | Description |
|---|---|
| Writer() | Create a new character-stream writer whose critical sections will synchronize on the writer itself. |
| Writer(Object) | Create a new character-stream writer whose critical sections will synchronize on the given object. |
Methods
| Name | Description |
|---|---|
| close() | Close the stream, flushing it first. |
| flush() | Flush the stream. |
| write(char[]) | Write an array of characters. |
| write(char[], int, int) | Write a portion of an array of characters. |
| write(int) | Write a single character. |
| write(String) | Write a string. |
| write(String, int, int) | Write a portion of a string. |