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.
throws: IOException - If an I/O error occurs
Clears the current contents of the buffer. Unlike clear(), this
mehtod will not throw an IOException if the buffer has already been
flushed. It merely clears the current content of the buffer and
returns.
throws: IOException - If an I/O error occurs
Close the stream, flushing it first. Once a stream has been closed,
further write() or flush() invocations will cause an IOException to be
thrown. Closing a previously-closed stream, however, has no effect.
exception: IOException - If an I/O error occurs
Return the value of this BodyJspWriter as a Reader.
Note: this is after evaluation!! There are no scriptlets,
etc in this stream.
the value of this BodyJspWriter as a Reader
Return the value of the BodyJspWriter as a String.
Note: this is after evaluation!! There are no scriptlets,
etc in this stream.
the value of the BodyJspWriter as a String
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.
exception: IOException - If an I/O error occurs
Print an array of characters. The characters are converted into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the BodyContentImpl.write(int)
method.
Parameters: s - The array of chars to be printed throws: NullPointerException - If s is null throws: java.io.IOException -
Print a character. The character is translated into one or more bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the BodyContentImpl.write(int) method.
Parameters: c - The char to be printed throws: java.io.IOException -
Print a string. If the argument is null then the string
"null" is printed. Otherwise, the string's characters are
converted into bytes according to the platform's default character
encoding, and these bytes are written in exactly the manner of the
BodyContentImpl.write(int) method.
Parameters: s - The String to be printed throws: java.io.IOException -
Print a boolean value. The string produced by java.lang.String.valueOf(boolean) is translated into bytes
according to the platform's default character encoding, and these bytes
are written in exactly the manner of the BodyContentImpl.write(int) method.
Parameters: b - The boolean to be printed throws: java.io.IOException -
Print a string. If the argument is null then the string
"null" is printed. Otherwise, the string's characters are
converted into bytes according to the platform's default character
encoding, and these bytes are written in exactly the manner of the
BodyContentImpl.write(int) method.
Parameters: s - The String to be printed throws: java.io.IOException -
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').
throws: java.io.IOException -
Write an array of characters. This method cannot be inherited from the
Writer class because it must suppress I/O exceptions.
write
public void write(char cbuf, int off, int len) throws IOException(Code)
Write a portion of an array of characters.
Ordinarily this method stores characters from the given array into
this stream's buffer, flushing the buffer to the underlying stream as
needed. If the requested length is at least as large as the buffer,
however, then this method will flush the buffer and write the characters
directly to the underlying stream. Thus redundant
DiscardableBufferedWriters will not copy data unnecessarily.
Parameters: cbuf - A character array Parameters: off - Offset from which to start reading characters Parameters: len - Number of characters to write
Write a portion of a String.
Parameters: s - String to be written Parameters: off - Offset from which to start reading characters Parameters: len - Number of characters to be written
Write the contents of this BodyJspWriter into a Writer.
Subclasses are likely to do interesting things with the
implementation so some things are extra efficient.
Parameters: out - The writer into which to place the contents ofthis body evaluation
Methods inherited from javax.servlet.jsp.tagext.BodyContent