Java Reference
In-Depth Information
Classes
The nine classes defined to develop JavaServer Pages tag libraries are described in the follow-
ing sections.
The BodyContent Class
public abstract class BodyContent extends JspWriter
BodyContent is a JspWriter subclass that can be used to process body evaluations so they can
be re-extracted at a later time. It has five methods.
The BodyContent() Method
protected BodyContent(JspWriter writer)
This method is used to construct a BodyJspWriter . It should only be used by a subclass.
BodyJspWriter() returns no values and throws no exceptions.
It takes one parameter:
JspWriter
The clearBody() Method
public void clearBody()
The clearBody() method is another implementation of the JspWriter method clear() . The
only difference is that clearBody() is guaranteed not to throw an exception. clearBody() has
no parameters, returns no value, and throws no exceptions.
The getReader() Method
public abstract java.io.Reader getReader()
The getReader() method returns the value of this BodyJspWriter as a Reader , after the
BodyJspWriter has been processed. getReader() has no parameters and throws no exceptions.
It returns this value:
java.io.Reader
The getString() Method
public abstract java.lang.String getString()
The getString() method returns the value of this BodyJspWriter as a string after the
BodyJspWriter has been processed. It has no parameters and throws no exceptions.
It returns this value:
java.lang.String
Search WWH ::




Custom Search