Closeable
, Flushable
, Appendable
, AutoCloseable
public 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 Appendable
append
in class Writer
public Writer append(CharSequence str)
append
in interface Appendable
append
in class Writer
public Writer append(CharSequence str, int off, int len)
append
in interface Appendable
append
in class Writer
public void close()
public void flush()
public StringBuilder getBuilder()