Example usage for Java java.io StringWriter fields, constructors, methods, implement or subclass
The text is from its open source code.
StringWriter() Create a new string writer using the default initial string-buffer size. | |
StringWriter(int initialSize) Create a new string writer using the specified initial string-buffer size. |
StringWriter | append(CharSequence csq) Appends the specified character sequence to this writer. |
StringWriter | append(char c) Appends the specified character to this writer. |
StringWriter | append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this writer. |
void | close() Closing a StringWriter has no effect. |
void | flush() Flush the stream. |
StringBuffer | getBuffer() Return the string buffer itself. |
Class> | getClass() Returns the runtime class of this Object . |
String | toString() Return the buffer's current value as a string. |
void | write(int c) Write a single character. |
void | write(String str) Write a string. |
void | write(char cbuf[], int off, int len) Write a portion of an array of characters. |
void | write(String str, int off, int len) Write a portion of a string. |