|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.core.FileTag
public class FileTag
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.
Field Summary | |
---|---|
private boolean |
doAppend
|
private java.lang.String |
encoding
|
private java.lang.String |
name
|
private boolean |
omitXmlDeclaration
|
private java.lang.String |
outputMode
|
private boolean |
prettyPrint
|
private java.lang.String |
var
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
FileTag()
|
Method Summary | |
---|---|
protected XMLOutput |
createXMLOutput(java.io.Writer writer)
A Factory method to create a new XMLOutput from the given Writer. |
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
java.lang.String |
getVar()
Returns the var. |
void |
setAppend(boolean doAppend)
Sets wether to append at the end of the file (not really something you normally do with an XML file). |
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. |
void |
setVar(java.lang.String var)
Sets the var. |
protected void |
writeBody(java.io.Writer writer)
Writes the body fo this tag to the given Writer |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean doAppend
private java.lang.String var
private java.lang.String name
private boolean omitXmlDeclaration
private java.lang.String outputMode
private boolean prettyPrint
private java.lang.String encoding
Constructor Detail |
---|
public FileTag()
Method Detail |
---|
public void doTag(XMLOutput output) throws JellyTagException
Tag
JellyTagException
public void setName(java.lang.String name)
public void setOmitXmlDeclaration(boolean omitXmlDeclaration)
public void setOutputMode(java.lang.String outputMode)
public void setPrettyPrint(boolean prettyPrint)
public void setEncoding(java.lang.String encoding)
public void setAppend(boolean doAppend)
public java.lang.String getVar()
public void setVar(java.lang.String var)
var
- The var to setprotected void writeBody(java.io.Writer writer) throws org.xml.sax.SAXException, JellyTagException
org.xml.sax.SAXException
JellyTagException
protected XMLOutput createXMLOutput(java.io.Writer writer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |