com.mockrunner.mock.web
Class MockBodyContent

java.lang.Object
  extended by java.io.Writer
      extended by javax.servlet.jsp.JspWriter
          extended by javax.servlet.jsp.tagext.BodyContent
              extended by com.mockrunner.mock.web.MockBodyContent
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class MockBodyContent
extends javax.servlet.jsp.tagext.BodyContent

Mock implementation of BodyContent.


Field Summary
 
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
MockBodyContent(javax.servlet.jsp.JspWriter writer)
           
 
Method Summary
 void clear()
           
 void clearBody()
           
 void clearBuffer()
           
 void close()
           
 java.lang.String getOutputAsString()
           
 java.io.Reader getReader()
           
 int getRemaining()
           
 java.lang.String getString()
           
 void newLine()
           
 void print(boolean arg0)
           
 void print(char arg0)
           
 void print(char[] arg0)
           
 void print(double arg0)
           
 void print(float arg0)
           
 void print(int arg0)
           
 void print(long arg0)
           
 void print(java.lang.Object arg0)
           
 void print(java.lang.String arg0)
           
 void println()
           
 void println(boolean arg0)
           
 void println(char arg0)
           
 void println(char[] arg0)
           
 void println(double arg0)
           
 void println(float arg0)
           
 void println(int arg0)
           
 void println(long arg0)
           
 void println(java.lang.Object arg0)
           
 void println(java.lang.String arg0)
           
 java.lang.String toString()
           
 void write(char[] cbuf, int off, int len)
           
 void writeOut(java.io.Writer writer)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyContent
flush, getEnclosingWriter
 
Methods inherited from class javax.servlet.jsp.JspWriter
getBufferSize, isAutoFlush
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockBodyContent

public MockBodyContent(javax.servlet.jsp.JspWriter writer)
Method Detail

getOutputAsString

public java.lang.String getOutputAsString()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getReader

public java.io.Reader getReader()
Specified by:
getReader in class javax.servlet.jsp.tagext.BodyContent

getString

public java.lang.String getString()
Specified by:
getString in class javax.servlet.jsp.tagext.BodyContent

writeOut

public void writeOut(java.io.Writer writer)
              throws java.io.IOException
Specified by:
writeOut in class javax.servlet.jsp.tagext.BodyContent
Throws:
java.io.IOException

clearBody

public void clearBody()
Overrides:
clearBody in class javax.servlet.jsp.tagext.BodyContent

newLine

public void newLine()
             throws java.io.IOException
Specified by:
newLine in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(boolean arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(char arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(int arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(long arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(float arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(double arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(char[] arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(java.lang.String arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

public void print(java.lang.Object arg0)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println()
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(boolean arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(char arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(int arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(long arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(float arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(double arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(char[] arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(java.lang.String arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(java.lang.Object arg0)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

clear

public void clear()
           throws java.io.IOException
Specified by:
clear in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

clearBuffer

public void clearBuffer()
                 throws java.io.IOException
Specified by:
clearBuffer in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

getRemaining

public int getRemaining()
Specified by:
getRemaining in class javax.servlet.jsp.JspWriter

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException