|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.io.Writer | +--javax.servlet.jsp.JspWriter | +--javax.servlet.jsp.tagext.BodyContent
An encapsulation of the evaluation of the body of an action so it is available to a tag handler. BodyContent is a subclass of JspWriter.
Note that the content of BodyContent is the result of evaluation, so it will not contain actions and the like, but the result of their invocation.
BodyContent has methods to convert its contents into a String, to read its contents, and to clear the contents.
The buffer size of a BodyContent object is unbounded. A BodyContent object cannot be in autoFlush mode. It is not possible to invoke flush on a BodyContent object, as there is no backing stream.
Instances of BodyContent are created by invoking the pushBody and popBody methods of the PageContext class. A BodyContent is enclosed within another JspWriter (maybe another BodyContent object) following the structure of their associated actions.
A BodyContent is made available to a BodyTag through a setBodyContent() call. The tag handler can use the object until after the call to doEndTag().
フィールドの概要 |
クラス javax.servlet.jsp.JspWriter から継承したフィールド |
autoFlush, bufferSize, DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER |
クラス java.io.Writer から継承したフィールド |
lock |
コンストラクタの概要 | |
protected |
BodyContent(JspWriter e)
Protected constructor. |
メソッドの概要 | |
void |
clearBody()
Clear the body without throwing any exceptions. |
void |
flush()
Redefined flush() so it is not legal. |
JspWriter |
getEnclosingWriter()
Get the enclosing JspWriter. |
abstract java.io.Reader |
getReader()
Return the value of this BodyContent as a Reader. |
abstract java.lang.String |
getString()
Return the value of the BodyContent as a String. |
abstract void |
writeOut(java.io.Writer out)
Write the contents of this BodyContent into a Writer. |
クラス javax.servlet.jsp.JspWriter から継承したメソッド |
clear, clearBuffer, close, getBufferSize, getRemaining, isAutoFlush, newLine, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println |
クラス java.io.Writer から継承したメソッド |
write, write, write, write, write |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
protected BodyContent(JspWriter e)
メソッドの詳細 |
public void flush() throws java.io.IOException
It is not valid to flush a BodyContent because there is no backing stream behind it.
JspWriter
内の flush
java.io.IOException
- If an I/O error occurspublic void clearBody()
public abstract java.io.Reader getReader()
public abstract java.lang.String getString()
public abstract void writeOut(java.io.Writer out) throws java.io.IOException
out
- The writer into which to place the contents of
this body evaluation
java.io.IOException
public JspWriter getEnclosingWriter()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |