javax.servlet.jsp.tagext

Class BodyContent


public abstract class BodyContent
extends JspWriter

A JspWriter subclass that can be used to process body evaluations so they can re-extracted later on.

Field Summary

Fields inherited from class javax.servlet.jsp.JspWriter

DEFAULT_BUFFER, NO_BUFFER, UNBOUNDED_BUFFER, autoFlush, bufferSize

Constructor Summary

BodyContent(JspWriter e)
Protected constructor.

Method Summary

void
clearBody()
Clear the body.
void
flush()
Redefine flush().
JspWriter
getEnclosingWriter()
Get the enclosing JspWriter
Reader
getReader()
Return the value of this BodyContent as a Reader.
String
getString()
Return the value of the BodyContent as a String.
void
writeOut(Writer out)
Write the contents of this BodyContent into a Writer.

Methods inherited from class javax.servlet.jsp.JspWriter

clear, clearBuffer, close, flush, getBufferSize, getRemaining, isAutoFlush, newLine, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println

Constructor Details

BodyContent

protected BodyContent(JspWriter e)
Protected constructor. Unbounded buffer, no autoflushing.

Method Details

clearBody

public void clearBody()
Clear the body.


flush

public void flush()
            throws IOException
Redefine flush(). It is not valid to flush.
Overrides:
flush in interface JspWriter


getEnclosingWriter

public JspWriter getEnclosingWriter()
Get the enclosing JspWriter


getReader

public Reader getReader()
Return the value of this BodyContent as a Reader. Note: this is after evaluation!! There are no scriptlets, etc in this stream.


getString

public String getString()
Return the value of the BodyContent as a String. Note: this is after evaluation!! There are no scriptlets, etc in this stream.


writeOut

public void writeOut(Writer out)
            throws IOException
Write the contents of this BodyContent 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 of this body evaluation


Copyright © 1999-2000 The Apache Software Foundation. All Rights Reserved.