org.apache.myfaces.shared_tomahawk.util
Class FastWriter
java.lang.Object
java.io.Writer
org.apache.myfaces.shared_tomahawk.util.FastWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public final class FastWriter
- extends Writer
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.
- Version:
- $Id: FastWriter.java 1187700 2011-10-22 12:19:37Z bommel $
- Author:
- Jacob Hookom
FastWriter
public FastWriter()
FastWriter
public FastWriter(int initialSize)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Writer
- Throws:
IOException
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
write
in class Writer
- Throws:
IOException
write
public void write(char[] cbuf)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(int c)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String str,
int off,
int len)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String str)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
reset
public void reset()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.