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
public class StringBuilderWriter extends Writer
- Since:
- 13.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
-
Constructor Summary
Constructors Constructor Description StringBuilderWriter()
StringBuilderWriter(int capacity)
StringBuilderWriter(StringBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Writer
append(char value)
Writer
append(CharSequence value)
Writer
append(CharSequence value, int start, int end)
void
close()
void
flush()
StringBuilder
getBuilder()
String
toString()
void
write(char[] value, int offset, int length)
void
write(String value)
-
-
-
Constructor Detail
-
StringBuilderWriter
public StringBuilderWriter()
-
StringBuilderWriter
public StringBuilderWriter(int capacity)
-
StringBuilderWriter
public StringBuilderWriter(StringBuilder builder)
-
-
Method Detail
-
append
public Writer append(char value)
-
append
public Writer append(CharSequence value)
-
append
public Writer append(CharSequence value, int start, int end)
-
close
public void close()
-
flush
public void flush()
-
write
public void write(String value)
-
write
public void write(char[] value, int offset, int length)
-
getBuilder
public StringBuilder getBuilder()
-
toString
public String toString()
-
-