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
Writer
that 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:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
-