Package org.thymeleaf.util
Class FastStringWriter
- Object
-
- java.io.Writer
-
- org.thymeleaf.util.FastStringWriter
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable
public final class FastStringWriter extends Writer
Fast implementation of
Writerthat avoids the need to use a thread-safeStringBuffer.- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Constructor Description FastStringWriter()FastStringWriter(int initialSize)
-
-
-
Method Detail
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
-