Package net.ontopia.utils.ontojsp
Class DefaultJspWriter
- java.lang.Object
-
- java.io.Writer
-
- javax.servlet.jsp.JspWriter
-
- net.ontopia.utils.ontojsp.DefaultJspWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class DefaultJspWriter extends javax.servlet.jsp.JspWriter
Fake the JspWriter, needed for execution of a JSP.
-
-
Constructor Summary
Constructors Constructor Description DefaultJspWriter(Writer out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
clearBuffer()
void
close()
void
flush()
int
getRemaining()
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)
Prints a boolean value and then terminate the line.void
println(char x)
Prints a character and then terminate the line.void
println(char[] x)
Prints an array of characters and then terminate the line.void
println(double x)
Prints a double-precision floating-point number and then terminate the line.void
println(float x)
Prints a floating-point number and then terminate the line.void
println(int x)
Prints an integer and then terminate the line.void
println(long x)
Prints a long integer and then terminate the line.void
println(Object x)
Prints an Object and then terminate the line.void
println(String x)
Prints a String and then terminate the line.void
write(char[] ch, int start, int length)
-
-
-
Constructor Detail
-
DefaultJspWriter
public DefaultJspWriter(Writer out)
-
-
Method Detail
-
clear
public final 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
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Specified by:
flush
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
-
newLine
public void newLine() throws IOException
- Specified by:
newLine
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
write
public void write(char[] ch, int start, int length) throws IOException
- Specified by:
write
in classWriter
- 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
Prints a boolean value and then terminate the line. This method behaves as though it invokes
and thenprint(boolean)
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(char x) throws IOException
Prints a character and then terminate the line. This method behaves as though it invokes
and thenprint(char)
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(int x) throws IOException
Prints an integer and then terminate the line. This method behaves as though it invokes
and thenprint(int)
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(long x) throws IOException
Prints a long integer and then terminate the line. This method behaves as though it invokes
and thenprint(long)
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(float x) throws IOException
Prints a floating-point number and then terminate the line. This method behaves as though it invokes
and thenprint(float)
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(double x) throws IOException
Prints a double-precision floating-point number and then terminate the line. This method behaves as though it invokes
and thenprint(double)
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(char[] x) throws IOException
Prints an array of characters and then terminate the line. This method behaves as though it invokes
and thenprint(char[])
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(String x) throws IOException
Prints a String and then terminate the line. This method behaves as though it invokes
and thenprint(String)
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
println
public void println(Object x) throws IOException
Prints an Object and then terminate the line. This method behaves as though it invokes
and thenprint(Object)
.println()
- Specified by:
println
in classjavax.servlet.jsp.JspWriter
- Throws:
IOException
-
-