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.BodyContent
INTERNAL: 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 void
clear()
void
clearBuffer()
void
close()
Reader
getReader()
int
getRemaining()
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(Object obj)
void
print(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(Object x)
void
println(String x)
void
write(char[] buf)
void
write(char[] cbuf, int off, int len)
void
write(int c)
void
write(String s, int off, int len)
void
writeOut(Writer out)
-
-
-
Method Detail
-
write
public void write(int c) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Specified by:
write
in classWriter
- Throws:
IOException
-
write
public void write(char[] buf) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public void write(String s, int off, int len) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
newLine
public void newLine() throws IOException
- Specified by:
newLine
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(boolean b) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(char c) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(int i) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(long l) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(float f) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(double d) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(char[] s) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(String s) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
print
public void print(Object obj) throws IOException
- Specified by:
print
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println() throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(boolean x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(char x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(int x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(long x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(float x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(double x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(char[] x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(String x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(Object x) throws IOException
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
clear
public void clear() throws IOException
- Specified by:
clear
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
clearBuffer
public void clearBuffer() throws IOException
- Specified by:
clearBuffer
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
getRemaining
public int getRemaining()
- Specified by:
getRemaining
in classjavax.servlet.jsp.JspWriter
-
getReader
public Reader getReader()
- Specified by:
getReader
in classjavax.servlet.jsp.tagext.BodyContent
-
getString
public String getString()
- Specified by:
getString
in classjavax.servlet.jsp.tagext.BodyContent
-
writeOut
public void writeOut(Writer out) throws IOException
- Specified by:
writeOut
in classjavax.servlet.jsp.tagext.BodyContent
- Throws:
IOException
-
-