Package org.infinispan.commons.io
Class StringBuilderWriter
java.lang.Object
java.io.Writer
org.infinispan.commons.io.StringBuilderWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
- Since:
- 13.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStringBuilderWriter
(int capacity) StringBuilderWriter
(StringBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionappend
(char value) append
(CharSequence value) append
(CharSequence value, int start, int end) void
close()
void
flush()
toString()
void
write
(char[] value, int offset, int length) void
Methods inherited from class java.io.Writer
nullWriter, write, write, write
-
Constructor Details
-
StringBuilderWriter
public StringBuilderWriter() -
StringBuilderWriter
public StringBuilderWriter(int capacity) -
StringBuilderWriter
-
-
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
-
close
public void close() -
flush
public void flush() -
write
-
write
public void write(char[] value, int offset, int length) -
getBuilder
-
toString
-