org.codehaus.groovy.grails.web.pages
Class FastStringWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by org.codehaus.groovy.grails.web.util.GrailsPrintWriter
              extended by org.codehaus.groovy.grails.web.pages.FastStringWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable
Direct Known Subclasses:
GroovyPageTagWriter

public class FastStringWriter
extends GrailsPrintWriter

Java's default StringWriter uses a StringBuffer which is synchronized. This implementation doesn't use synchronization

Since:
1.1

Created: Jan 20, 2009

Author:
Graeme Rocher, Lari Hotari

Field Summary
 
Fields inherited from class org.codehaus.groovy.grails.web.util.GrailsPrintWriter
out, trouble
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
  FastStringWriter()
           
protected FastStringWriter(Object o)
           
 
Method Summary
 Reader getReader()
           
 String toString()
           
 
Methods inherited from class org.codehaus.groovy.grails.web.util.GrailsPrintWriter
append, append, append, checkError, clone, flush, getFinalTarget, getOut, handleIOException, isFinalTargetHere, leftShift, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setFinalTargetHere, write, write, write, write, write
 
Methods inherited from class java.io.PrintWriter
close, format, format, printf, printf, setError
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastStringWriter

public FastStringWriter()

FastStringWriter

protected FastStringWriter(Object o)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getReader

public Reader getReader()


Copyright (c) 2005-2009 The Grails project