|
|||||||||||
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
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 java.lang.String |
encoding
|
private boolean |
escapeText
|
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. |
boolean |
isEscapeText()
Returns whether the body of this tag will be escaped or not. |
void |
setEncoding(java.lang.String encoding)
Sets the XML encoding mode, which defaults to UTF-8 |
void |
setEscapeText(boolean escapeText)
Sets whether the body of the tag should be escaped as text (so that < and > are escaped as < and >), which is the default or leave the text as XML. |
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, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
private boolean escapeText
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 java.lang.String getVar()
public void setVar(java.lang.String var)
var
- The var to setpublic boolean isEscapeText()
public void setEscapeText(boolean escapeText)
protected 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 |