Name
BodyContent
Synopsis
|
Class Name: |
javax.servlet.jsp.tagext.BodyContent |
|
Extends: |
javax.servlet.jsp.JspWriter |
|
Implements: |
None |
|
Implemented by: |
Internal container-dependent class |
Description
The container creates an instance of the
BodyContent class to encapsulate the element body
of a custom action element if the corresponding tag handler
implements the BodyTag interface. The container
makes the BodyContent instance available to the
tag handler by calling the setBodyContent( )
method, so the tag handler can process the body content.
Class Summary
public abstract class BodyContent extends JspWriter {
// Constructor
protected BodyContent(JspWriter e);
// Methods
public void clearBody( );
public void flush( ) throws java.io.IOException;
public JspWriter getEnclosingWriter( );
public abstract java.io.Reader getReader( );
public abstract String getString( );
public abstract void writeOut(java.io.Writer out)
throws java.io.IOException;
}Constructor
-
protected BodyContent(JspWriter e) Creates a new instance with the specified
JspWriteras the enclosing writer.
Methods
-
public void clearBody( ) Removes all buffered content for this instance.
-
public void flush( ) throws java.io.IOException Overwrites the behavior inherited from
JspWriterto always throw anIOException, since it’s invalid to flush aBodyContentinstance.-
public JspWriter getEnclosingWriter( ) Returns the enclosing
JspWriter, which is either the top levelJspWriteror theJspWriter(BodyContentsubclass) of the parent ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access