@ThreadRestricted @Warning(value="dead code") public final class StringSink extends OutputStream
Constructor and Description |
---|
StringSink(StringBuilder _builder,
Charset _charset)
Constructs a StringSink.
|
Modifier and Type | Method and Description |
---|---|
StringBuilder |
builder()
The underlying string builder.
|
Charset |
charset()
The character set in which this stream's bytes are encoded.
|
void |
flush() |
void |
reset()
Resets this stream discarding any output in the string builder.
|
void |
write(int c) |
close, write, write
public StringSink(StringBuilder _builder, Charset _charset)
public StringBuilder builder()
public void reset()
public void flush() throws CharacterCodingException
flush
in interface Flushable
flush
in class OutputStream
CharacterCodingException
public void write(int c) throws CharacterCodingException
write
in class OutputStream
CharacterCodingException