org.codehaus.groovy.grails.web.pages
Class GSPWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
org.codehaus.groovy.grails.web.pages.GSPWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class GSPWriter
- extends PrintWriter
A PrintWriter used in the generation of GSP pages that allows printing to the target output stream and
maintains a record of the current line number during usage.
- Since:
- 13-Jan-2006
- Author:
- Graeme Rocher
Methods inherited from class java.io.PrintWriter |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GSPWriter
public GSPWriter(Writer out,
GroovyPageParser parse)
write
public void write(char[] buf,
int off,
int len)
- Overrides:
write
in class PrintWriter
printlnToResponse
public void printlnToResponse(String s)
printlnToBuffer
public void printlnToBuffer(String s,
int index)
println
public void println()
- Overrides:
println
in class PrintWriter
getCurrentLineNumber
public int getCurrentLineNumber()
getLineNumbers
public int[] getLineNumbers()
Copyright (c) 2005-2009 The Grails project