@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 Appendable
append
in class Writer
IOException
public StringWriterB append(CharSequence csq) throws IOException
append
in interface Appendable
append
in class Writer
IOException
public StringWriterB append(CharSequence csq, int start, int end) throws IOException
append
in interface Appendable
append
in class Writer
IOException
public void close()
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void write(char[] cbuf) throws IOException
write
in class Writer
IOException
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void write(String str) throws IOException
write
in class Writer
IOException
public void write(String str, int off, int len) throws IOException
write
in class Writer
IOException