org.codehaus.groovy.grails.web.pages
Class FastStringWriter
java.lang.Object
java.io.Writer
org.codehaus.groovy.grails.web.pages.FastStringWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class FastStringWriter
- extends Writer
Java's default StringWriter uses a StringBuffer which is synchronized. This implementation uses
StringBuilder which doesn't use synchronization
- Since:
- 1.1
Created: Jan 20, 2009
- Author:
- Graeme Rocher
FastStringWriter
public FastStringWriter()
FastStringWriter
protected FastStringWriter(Object o)
write
public void write(int i)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(char[] chars)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String s)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
write
public void write(String s,
int i,
int i1)
throws IOException
- Overrides:
write
in class Writer
- Throws:
IOException
append
public Writer append(CharSequence charSequence)
throws IOException
- Specified by:
append
in interface Appendable
- Overrides:
append
in class Writer
- Throws:
IOException
append
public Writer append(CharSequence charSequence,
int i,
int i1)
throws IOException
- Specified by:
append
in interface Appendable
- Overrides:
append
in class Writer
- Throws:
IOException
append
public Writer append(char c)
throws IOException
- Specified by:
append
in interface Appendable
- Overrides:
append
in class Writer
- Throws:
IOException
write
public void write(char[] chars,
int i,
int i1)
throws IOException
- Specified by:
write
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
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright (c) 2005-2009 The Grails project