Package org.apache.myfaces.util.lang
Class FastWriter
java.lang.Object
java.io.Writer
org.apache.myfaces.util.lang.FastWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
StringWriter cannot be reused without create a new object over and over.
This class provide a simple implementation that allows reuse the same buffer
in a efficient way.
- Author:
- Jacob Hookom
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Writer
append, append, append, nullWriter
-
Constructor Details
-
FastWriter
public FastWriter() -
FastWriter
public FastWriter(int initialSize)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
in classWriter
- Throws:
IOException
-
write
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
- Overrides:
write
in classWriter
- Throws:
IOException
-
reset
public void reset() -
toString
-