Package i2p.susi.util
Class StringBuilderWriter
java.lang.Object
java.io.Writer
i2p.susi.util.StringBuilderWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class StringBuilderWriter extends Writer
StringBuilder version of StringWriter
- Since:
- 0.9.35
-
Field Summary
-
Constructor Summary
Constructors Constructor Description StringBuilderWriter()
StringBuilderWriter(int capacity)
-
Method Summary
Modifier and Type Method Description Writer
append(char c)
Writer
append(CharSequence str)
Writer
append(CharSequence str, int off, int len)
void
close()
Does nothing.void
flush()
Does nothing.StringBuilder
getBuilder()
String
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)
-
Constructor Details
-
StringBuilderWriter
public StringBuilderWriter() -
StringBuilderWriter
public StringBuilderWriter(int capacity)
-
-
Method Details
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
write
public void write(char[] cbuf) -
write
public void write(char[] cbuf, int off, int len) -
write
public void write(int c) -
write
-
write
-
close
public void close()Does nothing. -
flush
public void flush()Does nothing. -
getBuilder
-
toString
-