Package net.ontopia.utils.ontojsp
Class FakeBodyContent
- java.lang.Object
-
- java.io.Writer
-
- javax.servlet.jsp.JspWriter
-
- javax.servlet.jsp.tagext.BodyContent
-
- net.ontopia.utils.ontojsp.FakeBodyContent
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class FakeBodyContent extends javax.servlet.jsp.tagext.BodyContentINTERNAL: Fake body content for use with the ontopia fake jsp environment.
-
-
Constructor Summary
Constructors Constructor Description FakeBodyContent(javax.servlet.jsp.JspWriter writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclearBuffer()voidclose()ReadergetReader()intgetRemaining()StringgetString()voidnewLine()voidprint(boolean b)voidprint(char c)voidprint(char[] s)voidprint(double d)voidprint(float f)voidprint(int i)voidprint(long l)voidprint(Object obj)voidprint(String s)voidprintln()voidprintln(boolean x)voidprintln(char x)voidprintln(char[] x)voidprintln(double x)voidprintln(float x)voidprintln(int x)voidprintln(long x)voidprintln(Object x)voidprintln(String x)voidwrite(char[] buf)voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String s, int off, int len)voidwriteOut(Writer out)
-
-
-
Method Detail
-
write
public void write(int c) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Specified by:
writein classWriter- Throws:
IOException
-
write
public void write(char[] buf) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(String s, int off, int len) throws IOException
- Overrides:
writein classWriter- Throws:
IOException
-
newLine
public void newLine() throws IOException- Specified by:
newLinein classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(boolean b) throws IOException- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(char c) throws IOException- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(int i) throws IOException- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(long l) throws IOException- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(float f) throws IOException- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(double d) throws IOException- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(char[] s) throws IOException- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(String s) throws IOException
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
print
public void print(Object obj) throws IOException
- Specified by:
printin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println() throws IOException- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(boolean x) throws IOException- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(char x) throws IOException- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(int x) throws IOException- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(long x) throws IOException- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(float x) throws IOException- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(double x) throws IOException- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(char[] x) throws IOException- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(String x) throws IOException
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
println
public void println(Object x) throws IOException
- Specified by:
printlnin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
clear
public void clear() throws IOException- Specified by:
clearin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
clearBuffer
public void clearBuffer() throws IOException- Specified by:
clearBufferin classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classjavax.servlet.jsp.JspWriter- Throws:
IOException
-
getRemaining
public int getRemaining()
- Specified by:
getRemainingin classjavax.servlet.jsp.JspWriter
-
getReader
public Reader getReader()
- Specified by:
getReaderin classjavax.servlet.jsp.tagext.BodyContent
-
getString
public String getString()
- Specified by:
getStringin classjavax.servlet.jsp.tagext.BodyContent
-
writeOut
public void writeOut(Writer out) throws IOException
- Specified by:
writeOutin classjavax.servlet.jsp.tagext.BodyContent- Throws:
IOException
-
-