org.codehaus.groovy.grails.web.pages.ext.jsp
Class BodyContentImpl

java.lang.Object
  extended by java.io.Writer
      extended by javax.servlet.jsp.JspWriter
          extended by javax.servlet.jsp.tagext.BodyContent
              extended by org.codehaus.groovy.grails.web.pages.ext.jsp.BodyContentImpl
All Implemented Interfaces:
Closeable, Flushable, Appendable

 class BodyContentImpl
extends BodyContent

Uses an internal CharArrayWriter.

Since:
1.1
Author:
Graeme Rocher

Field Summary
(package private) static char[] LINE_BREAK
           
 
Fields inherited from class javax.servlet.jsp.JspWriter
autoFlush, bufferSize, DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
BodyContentImpl(JspWriter out, boolean buffer)
           
 
Method Summary
 void clear()
           
 void clearBuffer()
           
 void close()
           
 void flush()
           
 Reader getReader()
           
 int getRemaining()
           
 String getString()
           
(package private)  void initBuffer()
           
 void newLine()
           
 void print(boolean b)
           
 void print(char c)
           
 void print(char[] chars)
           
 void print(double d)
           
 void print(float f)
           
 void print(int i)
           
 void print(long l)
           
 void print(Object o)
           
 void print(String s)
           
 void println()
           
 void println(boolean b)
           
 void println(char c)
           
 void println(char[] chars)
           
 void println(double d)
           
 void println(float f)
           
 void println(int i)
           
 void println(long l)
           
 void println(Object o)
           
 void println(String s)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void writeOut(Writer out)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyContent
clearBody, getEnclosingWriter
 
Methods inherited from class javax.servlet.jsp.JspWriter
getBufferSize, isAutoFlush
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINE_BREAK

static final char[] LINE_BREAK
Constructor Detail

BodyContentImpl

BodyContentImpl(JspWriter out,
                boolean buffer)
Method Detail

initBuffer

void initBuffer()

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class BodyContent
Throws:
IOException

clear

public void clear()
           throws IOException
Specified by:
clear in class JspWriter
Throws:
IOException

clearBuffer

public void clearBuffer()
                 throws IOException
Specified by:
clearBuffer in class JspWriter
Throws:
IOException

getRemaining

public int getRemaining()
Specified by:
getRemaining in class JspWriter

newLine

public void newLine()
             throws IOException
Specified by:
newLine in class JspWriter
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class JspWriter
Throws:
IOException

print

public void print(boolean b)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

print

public void print(char c)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

print

public void print(char[] chars)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

print

public void print(double d)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

print

public void print(float f)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

print

public void print(int i)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

print

public void print(long l)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

print

public void print(Object o)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

print

public void print(String s)
           throws IOException
Specified by:
print in class JspWriter
Throws:
IOException

println

public void println()
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(boolean b)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(char c)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(char[] chars)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(double d)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(float f)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(int i)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(long l)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(Object o)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

println

public void println(String s)
             throws IOException
Specified by:
println in class JspWriter
Throws:
IOException

write

public void write(int c)
           throws IOException
Overrides:
write 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

getString

public String getString()
Specified by:
getString in class BodyContent

getReader

public Reader getReader()
Specified by:
getReader in class BodyContent

writeOut

public void writeOut(Writer out)
              throws IOException
Specified by:
writeOut in class BodyContent
Throws:
IOException