public class StringWriter extends Writer
| 构造器和说明 |
|---|
StringWriter(StringBuilder sb) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
flush() |
StringBuilder |
getStringBuilder() |
void |
write(char[] cbuf,
int off,
int len) |
public StringWriter(StringBuilder sb)
public void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 WriterIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write 在类中 WriterIOExceptionpublic StringBuilder getStringBuilder()
Copyright © 2017. All rights reserved.