net.ontopia.utils.ontojsp
Class DefaultJspWriter

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

public class DefaultJspWriter
extends javax.servlet.jsp.JspWriter

Fake the JspWriter, needed for execution of a JSP.


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
DefaultJspWriter(java.io.Writer out)
           
 
Method Summary
 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(java.lang.Object obj)
           
 void print(java.lang.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(java.lang.Object x)
          Prints an Object and then terminate the line.
 void println(java.lang.String x)
          Prints a String and then terminate the line.
 void write(char[] ch, int start, int length)
           
 
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, toString, wait, wait, wait
 

Constructor Detail

DefaultJspWriter

public DefaultJspWriter(java.io.Writer out)
Method Detail

clear

public final 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

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush 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

newLine

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

write

public void write(char[] ch,
                  int start,
                  int length)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
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
Prints a boolean value and then terminate the line. This method behaves as though it invokes print(boolean) and then println().

Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(char x)
             throws java.io.IOException
Prints a character and then terminate the line. This method behaves as though it invokes print(char) and then println().

Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(int x)
             throws java.io.IOException
Prints an integer and then terminate the line. This method behaves as though it invokes print(int) and then println().

Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(long x)
             throws java.io.IOException
Prints a long integer and then terminate the line. This method behaves as though it invokes print(long) and then println().

Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(float x)
             throws java.io.IOException
Prints a floating-point number and then terminate the line. This method behaves as though it invokes print(float) and then println().

Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(double x)
             throws java.io.IOException
Prints a double-precision floating-point number and then terminate the line. This method behaves as though it invokes print(double) and then println().

Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException

println

public void println(char[] x)
             throws java.io.IOException
Prints an array of characters and then terminate the line. This method behaves as though it invokes print(char[]) and then println().

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
Prints a String and then terminate the line. This method behaves as though it invokes print(String) and then println().

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
Prints an Object and then terminate the line. This method behaves as though it invokes print(Object) and then println().

Specified by:
println in class javax.servlet.jsp.JspWriter
Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.