@ThreadRestricted public final class StringWriterB extends Writer
StringWriter| Constructor and Description |
|---|
StringWriterB()
Constructs a StringWriterB.
|
StringWriterB(StringBuilder _builder)
Constructs a StringWriterB using the specified string builder.
|
| Modifier and Type | Method and Description |
|---|---|
StringWriterB |
append(char c) |
StringWriterB |
append(CharSequence csq) |
StringWriterB |
append(CharSequence csq,
int start,
int end) |
StringBuilder |
builder()
The underlying string builder.
|
void |
close() |
void |
flush() |
String |
toString()
Returns builder().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 StringWriterB()
public StringWriterB(StringBuilder _builder)
builder()public StringBuilder builder()
public StringWriterB append(char c) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic StringWriterB append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic StringWriterB append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic void close()
public void flush() throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(char[] cbuf) throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf, int off, int len) throws IOException
write in class WriterIOExceptionpublic void write(int c) throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOException