net.ontopia.utils.ontojsp
Class FakeBodyContent

java.lang.Object
  extended by java.io.Writer
      extended by javax.servlet.jsp.JspWriter
          extended by javax.servlet.jsp.tagext.BodyContent
              extended by net.ontopia.utils.ontojsp.FakeBodyContent
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

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

INTERNAL: Fake body content for use with the ontopia fake jsp environment.


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

Field Detail

bufferSize

protected int bufferSize
Constructor Detail

FakeBodyContent

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

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

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

write

public void write(char[] buf)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String s,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

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 b)
           throws java.io.IOException
Specified by:
print in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

print

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

print

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

print

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

print

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

print

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

print

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

print

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

print

public void print(java.lang.Object obj)
           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 x)
             throws java.io.IOException
Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

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

println

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

println

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

println

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

println

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

println

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

println

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

println

public void println(java.lang.Object x)
             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

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 out)
              throws java.io.IOException
Specified by:
writeOut in class javax.servlet.jsp.tagext.BodyContent
Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.