Package org.thymeleaf.util
Class FastStringWriter
Object
java.io.Writer
org.thymeleaf.util.FastStringWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
Fast implementation of Writer
that avoids the need to use a thread-safe
StringBuffer
.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FastStringWriter
public FastStringWriter() -
FastStringWriter
public FastStringWriter(int initialSize)
-
-
Method Details
-
write
public void write(int c) -
write
-
write
-
write
public void write(char[] cbuf) -
write
public void write(char[] cbuf, int off, int len) -
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
toString
-