Class JspWriterImpl

java.lang.Object
java.io.Writer
javax.servlet.jsp.JspWriter
org.apache.jasper.runtime.JspWriterImpl
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class JspWriterImpl extends JspWriter
Write text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings. Provide support for discarding for the output that has been buffered. This needs revisiting when the buffering problems in the JSP spec are fixed -akv
Author:
Anil K. Vijendran
  • 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
     
    JspWriterImpl(ServletResponse response, int sz, boolean autoFlush)
    Create a new buffered character-output stream that uses an output buffer of the given size.
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    Clear the contents of the buffer.
    void
    Clears the current contents of the buffer.
    void
    Close the stream, flushing it first.
    void
    Flush the stream.
    protected final void
    Flush the output buffer to the underlying character stream, without flushing the stream itself.
    int
    This method returns the number of unused bytes in the buffer.
    void
    Write a line separator.
    void
    print(boolean b)
    Print a boolean value.
    void
    print(char c)
    Print a character.
    void
    print(char[] s)
    Print an array of characters.
    void
    print(double d)
    Print a double-precision floating-point number.
    void
    print(float f)
    Print a floating-point number.
    void
    print(int i)
    Print an integer.
    void
    print(long l)
    Print a long integer.
    void
    Print an object.
    void
    Print a string.
    void
    Terminate the current line by writing the line separator string.
    void
    println(boolean x)
    Print a boolean value and then terminate the line.
    void
    println(char x)
    Print a character and then terminate the line.
    void
    println(char[] x)
    Print an array of characters and then terminate the line.
    void
    println(double x)
    Print a double-precision floating-point number and then terminate the line.
    void
    println(float x)
    Print a floating-point number and then terminate the line.
    void
    println(int x)
    Print an integer and then terminate the line.
    void
    println(long x)
    Print a long integer and then terminate the line.
    void
    Print an Object and then terminate the line.
    void
    Print a String and then terminate the line.
    void
    write(char[] buf)
     
    void
    write(char[] cbuf, int off, int len)
     
    void
    write(int c)
     
    void
    write(String s, int off, int len)
     

    Methods inherited from class javax.servlet.jsp.JspWriter

    getBufferSize, isAutoFlush

    Methods inherited from class java.io.Writer

    append, append, append, nullWriter, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait