public class StringWriter extends Writer
StringWriter| Constructor and Description |
|---|
StringWriter() |
StringWriter(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
StringWriter |
append(char c) |
StringWriter |
append(CharSequence csq) |
StringWriter |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
StringBuilder |
getBuffer() |
String |
toString() |
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 StringWriter()
public StringWriter(int capacity)
public StringWriter append(CharSequence csq)
append in interface Appendableappend in class Writerpublic StringWriter append(CharSequence csq, int start, int end)
append in interface Appendableappend in class Writerpublic StringWriter append(char c)
append in interface Appendableappend in class Writerpublic StringBuilder getBuffer()
public void flush()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2017. All rights reserved.