org.apache.taglibs.io
Class PipeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.taglibs.io.AbstractBodyTag
              extended by org.apache.taglibs.io.TransformerTagSupport
                  extended by org.apache.taglibs.io.PipeTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, PipeConsumer

public class PipeTag
extends TransformerTagSupport

A pipe tag can be given some input and it pipes to either its standard output or it can pipe to a parent PipeConsumer

Version:
$Revision$
Author:
James Strachan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.taglibs.io.TransformerTagSupport
CLOSE_READER
 
Fields inherited from class org.apache.taglibs.io.AbstractBodyTag
TRACE, WARN
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
PipeTag()
           
 
Method Summary
protected  void transform(java.io.Reader reader, java.io.Writer writer)
          Pipe the input to the output unless my parent is a consumer in which case I'll pass my input into my parent PipeConsumer
 
Methods inherited from class org.apache.taglibs.io.TransformerTagSupport
doAfterBody, doStartTag, getConsumer, release, setReader, setWriter
 
Methods inherited from class org.apache.taglibs.io.AbstractBodyTag
handleException, warn, warn
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

PipeTag

public PipeTag()
Method Detail

transform

protected void transform(java.io.Reader reader,
                         java.io.Writer writer)
                  throws java.io.IOException,
                         javax.servlet.jsp.JspException
Pipe the input to the output unless my parent is a consumer in which case I'll pass my input into my parent PipeConsumer

Specified by:
transform in class TransformerTagSupport
Throws:
java.io.IOException
javax.servlet.jsp.JspException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.