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.
  • 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
     
    void
     
    void
     
    void
     
    int
     
    void
     
    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
     
    void
     
    void
     
    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
    Prints an Object and then terminate the line.
    void
    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, nullWriter, write, write, write, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultJspWriter

      public DefaultJspWriter(Writer out)
  • Method Details

    • clear

      public final void clear() throws IOException
      Specified by:
      clear in class javax.servlet.jsp.JspWriter
      Throws:
      IOException
    • clearBuffer

      public void clearBuffer() throws IOException
      Specified by:
      clearBuffer in class javax.servlet.jsp.JspWriter
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Specified by:
      flush in class javax.servlet.jsp.JspWriter
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class javax.servlet.jsp.JspWriter
      Throws:
      IOException
    • getRemaining

      public int getRemaining()
      Specified by:
      getRemaining in class javax.servlet.jsp.JspWriter
    • newLine

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

      public void write(char[] ch, int start, int length) throws IOException
      Specified by:
      write in class Writer
      Throws:
      IOException
    • print

      public void print(boolean b) throws IOException
      Specified by:
      print in class javax.servlet.jsp.JspWriter
      Throws:
      IOException
    • print

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

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

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

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

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

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

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

      public void print(Object obj) throws IOException
      Specified by:
      print in class javax.servlet.jsp.JspWriter
      Throws:
      IOException
    • println

      public void println() throws IOException
      Specified by:
      println in class javax.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 print(boolean) and then println().
      Specified by:
      println in class javax.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 print(char) and then println().
      Specified by:
      println in class javax.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 print(int) and then println().
      Specified by:
      println in class javax.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 print(long) and then println().
      Specified by:
      println in class javax.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 print(float) and then println().
      Specified by:
      println in class javax.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 print(double) and then println().
      Specified by:
      println in class javax.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 print(char[]) and then println().
      Specified by:
      println in class javax.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 print(String) and then println().
      Specified by:
      println in class javax.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 print(Object) and then println().
      Specified by:
      println in class javax.servlet.jsp.JspWriter
      Throws:
      IOException