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
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 Writer
IOException
public void flush() throws IOException
flush
在接口中 Flushable
flush
在类中 Writer
IOException
public void write(char[] cbuf, int off, int len) throws IOException
write
在类中 Writer
IOException
public StringBuilder getStringBuilder()
Copyright © 2017. All rights reserved.