| Modifier and Type | Field and Description |
|---|---|
| private final StringBuffer |
| Access | Constructor and Description |
|---|---|
| public | StringBufferWriter(StringBuffer buffer)
Create a new string writer which will append the text to the given StringBuffer |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract java. Implements java. |
| public void | flush()
Implements abstract java. Implements java. |
| public String | |
| public void | write(int
int specifying a character to be written c)Overrides java. |
| public void | write(char[]
Array of characters text, int Offset from which to start writing characters offset, int Number of characters to write length)Implements abstract java. |
| public void | |
| public void | write(String
the text to be written text, int offset from which to start writing characters offset, int Number of characters to write length)Overrides java. |
| buffer | back to summary |
|---|---|
| private final StringBuffer buffer | |
| StringBufferWriter | back to summary |
|---|---|
| public StringBufferWriter(StringBuffer buffer) Create a new string writer which will append the text to the given StringBuffer | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Closing a StringWriter has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.
| |
| flush | back to summary |
|---|---|
| public void flush() Implements abstract java. Implements java. Flush the stream. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the buffer's current value as a string.
| |
| write | back to summary |
|---|---|
| public void write(int c) Overrides java. Write a single character.
| |
| write | back to summary |
|---|---|
| public void write(char[] text, int offset, int length) Implements abstract java. Write a portion of an array of characters.
| |
| write | back to summary |
|---|---|
| public void write(String text) Overrides java. Write a string.
| |
| write | back to summary |
|---|---|
| public void write(String text, int offset, int length) Overrides java. Write a portion of a string.
| |