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:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
toString
-