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
-
-
Constructor Summary
Constructors Constructor Description StringBuilderWriter()
StringBuilderWriter(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
Methods inherited from class java.io.Writer
nullWriter
-
-
-
-
Method Detail
-
append
public Writer append(char c)
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
public Writer append(CharSequence str)
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
public Writer append(CharSequence str, int off, int len)
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
close
public void close()
Does nothing.
-
flush
public void flush()
Does nothing.
-
getBuilder
public StringBuilder getBuilder()
-
-