org.apache.commons.jelly.tags.core
Class FileTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.core.FileTag
All Implemented Interfaces:
Tag

public class FileTag
extends TagSupport

A tag that pipes its body to a file.

Author:
Vinay Chandran

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
FileTag()
           
 
Method Summary
protected  XMLOutput createXMLOutput()
           
 void doTag(XMLOutput output)
          Evaluates this tag after all the tags properties have been initialized.
 void setEncoding(java.lang.String encoding)
          Sets the XML encoding mode, which defaults to UTF-8
 void setName(java.lang.String name)
          Sets the file name for the output
 void setOmitXmlDeclaration(boolean omitXmlDeclaration)
          Sets whether the XML declaration should be output or not
 void setOutputMode(java.lang.String outputMode)
          Sets the output mode, whether XML or HTML
 void setPrettyPrint(boolean prettyPrint)
          Sets whether pretty printing mode is turned on.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTag

public FileTag()
Method Detail

doTag

public void doTag(XMLOutput output)
           throws java.lang.Exception
Description copied from interface: Tag
Evaluates this tag after all the tags properties have been initialized.

setName

public void setName(java.lang.String name)
Sets the file name for the output

setOmitXmlDeclaration

public void setOmitXmlDeclaration(boolean omitXmlDeclaration)
Sets whether the XML declaration should be output or not

setOutputMode

public void setOutputMode(java.lang.String outputMode)
Sets the output mode, whether XML or HTML

setPrettyPrint

public void setPrettyPrint(boolean prettyPrint)
Sets whether pretty printing mode is turned on. The default is off so that whitespace is preserved

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the XML encoding mode, which defaults to UTF-8

createXMLOutput

protected XMLOutput createXMLOutput()
                             throws java.lang.Exception


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.