Methods Summary |
---|
public abstract void | clear()Clear the contents of the buffer. If the buffer has been already
been flushed then the clear operation shall throw an IOException
to signal the fact that some data has already been irrevocably
written to the client response stream.
|
public abstract void | clearBuffer()Clears the current contents of the buffer. Unlike clear(), this
method will not throw an IOException if the buffer has already been
flushed. It merely clears the current content of the buffer and
returns.
|
public abstract void | close()Close the stream, flushing it first.
This method needs not be invoked explicitly for the initial JspWriter
as the code generated by the JSP container will automatically
include a call to close().
Closing a previously-closed stream, unlike flush(), has no effect.
|
public abstract void | flush()Flush the stream. If the stream has saved any characters from the
various write() methods in a buffer, write them immediately to their
intended destination. Then, if that destination is another character or
byte stream, flush it. Thus one flush() invocation will flush all the
buffers in a chain of Writers and OutputStreams.
The method may be invoked indirectly if the buffer size is exceeded.
Once a stream has been closed,
further write() or flush() invocations will cause an IOException to be
thrown.
|
public int | getBufferSize()This method returns the size of the buffer used by the JspWriter. return bufferSize;
|
public abstract int | getRemaining()This method returns the number of unused bytes in the buffer.
|
public boolean | isAutoFlush()This method indicates whether the JspWriter is autoFlushing. return autoFlush;
|
public abstract void | newLine()Write a line separator. The line separator string is defined by the
system property line.separator, and is not necessarily a single
newline ('\n') character.
|
public abstract void | print(java.lang.String s)Print a string. If the argument is null then the string
"null" is printed. Otherwise, the string's characters are
written to the JspWriter's buffer or, if no buffer is used, directly
to the underlying writer.
|
public abstract void | print(java.lang.Object obj)Print an object. The string produced by the {@link
java.lang.String#valueOf(Object)} method is written to the
JspWriter's buffer or, if no buffer is used, directly to the
underlying writer.
|
public abstract void | print(boolean b)Print a boolean value. The string produced by {@link
java.lang.String#valueOf(boolean)} is written to the
JspWriter's buffer or, if no buffer is used, directly to the
underlying writer.
|
public abstract void | print(char c)Print a character. The character is written to the
JspWriter's buffer or, if no buffer is used, directly to the
underlying writer.
|
public abstract void | print(int i)Print an integer. The string produced by {@link
java.lang.String#valueOf(int)} is written to the
JspWriter's buffer or, if no buffer is used, directly to the
underlying writer.
|
public abstract void | print(long l)Print a long integer. The string produced by {@link
java.lang.String#valueOf(long)} is written to the
JspWriter's buffer or, if no buffer is used, directly to the
underlying writer.
|
public abstract void | print(float f)Print a floating-point number. The string produced by {@link
java.lang.String#valueOf(float)} is written to the
JspWriter's buffer or, if no buffer is used, directly to the
underlying writer.
|
public abstract void | print(double d)Print a double-precision floating-point number. The string produced by
{@link java.lang.String#valueOf(double)} is written to
the JspWriter's buffer or, if no buffer is used, directly to the
underlying writer.
|
public abstract void | print(char[] s)Print an array of characters. The characters are written to the
JspWriter's buffer or, if no buffer is used, directly to the
underlying writer.
|
public abstract void | println()Terminate the current line by writing the line separator string. The
line separator string is defined by the system property
line.separator , and is not necessarily a single newline
character ('\n' ).
|
public abstract void | println(boolean x)Print a boolean value and then terminate the line. This method behaves
as though it invokes {@link #print(boolean)} and then
{@link #println()} .
|
public abstract void | println(char x)Print a character and then terminate the line. This method behaves as
though it invokes {@link #print(char)} and then {@link
#println()} .
|
public abstract void | println(int x)Print an integer and then terminate the line. This method behaves as
though it invokes {@link #print(int)} and then {@link
#println()} .
|
public abstract void | println(long x)Print a long integer and then terminate the line. This method behaves
as though it invokes {@link #print(long)} and then
{@link #println()} .
|
public abstract void | println(float x)Print a floating-point number and then terminate the line. This method
behaves as though it invokes {@link #print(float)} and then
{@link #println()} .
|
public abstract void | println(double x)Print a double-precision floating-point number and then terminate the
line. This method behaves as though it invokes {@link
#print(double)} and then {@link #println()} .
|
public abstract void | println(char[] x)Print an array of characters and then terminate the line. This method
behaves as though it invokes print(char[]) and then
println() .
|
public abstract void | println(java.lang.String x)Print a String and then terminate the line. This method behaves as
though it invokes {@link #print(String)} and then
{@link #println()} .
|
public abstract void | println(java.lang.Object x)Print an Object and then terminate the line. This method behaves as
though it invokes {@link #print(Object)} and then
{@link #println()} .
|