Closeable, Flushable, Appendable, AutoCloseablepublic class StringBuilderWriter extends Writer
| Constructor | Description |
|---|---|
StringBuilderWriter() |
|
StringBuilderWriter(int capacity) |
| Modifier and Type | Method | Description |
|---|---|---|
Writer |
append(char c) |
|
Writer |
append(CharSequence str) |
|
Writer |
append(CharSequence str,
int off,
int len) |
|
void |
close() |
Does nothing.
|
void |
flush() |
Does nothing.
|
StringBuilder |
getBuilder() |
|
String |
toString() |
|
void |
write(char[] cbuf) |
|
void |
write(char[] cbuf,
int off,
int len) |
|
void |
write(int c) |
|
void |
write(String str) |
|
void |
write(String str,
int off,
int len) |
public StringBuilderWriter()
public StringBuilderWriter(int capacity)
public Writer append(char c)
append in interface Appendableappend in class Writerpublic Writer append(CharSequence str)
append in interface Appendableappend in class Writerpublic Writer append(CharSequence str, int off, int len)
append in interface Appendableappend in class Writerpublic void close()
public void flush()
public StringBuilder getBuilder()