Constructors
Name | Description |
---|---|
StringWriter() | Create a new string writer, using the default initial string-buffer size. |
StringWriter(int) | Create a new string writer, using the specified initial string-buffer size. |
Methods
Name | Description |
---|---|
close() | Close the stream. |
flush() | Flush the stream. |
getBuffer() | Return the string buffer itself. |
toString() | Return the buffer's current value as a string. |
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. |