| |
|
| java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.core.FileTag
FileTag | public class FileTag extends TagSupport (Code) | | A tag that pipes its body to a file denoted by the name attribute or to an in memory String
which is then output to a variable denoted by the var variable.
author: Vinay Chandran |
Constructor Summary | |
public | FileTag() |
createXMLOutput | protected XMLOutput createXMLOutput(Writer writer)(Code) | | A Factory method to create a new XMLOutput from the given Writer.
|
setAppend | public void setAppend(boolean doAppend)(Code) | | Sets wether to append at the end of the file
(not really something you normally do with an XML file).
|
setEncoding | public void setEncoding(String encoding)(Code) | | Sets the XML encoding mode, which defaults to UTF-8
|
setName | public void setName(String name)(Code) | | Sets the file name for the output
|
setOmitXmlDeclaration | public void setOmitXmlDeclaration(boolean omitXmlDeclaration)(Code) | | Sets whether the XML declaration should be output or not
|
setOutputMode | public void setOutputMode(String outputMode)(Code) | | Sets the output mode, whether XML or HTML
|
setPrettyPrint | public void setPrettyPrint(boolean prettyPrint)(Code) | | Sets whether pretty printing mode is turned on. The default is off so that whitespace is preserved
|
setVar | public void setVar(String var)(Code) | | Sets the var.
Parameters: var - The var to set |
|
|
|