org.apache.commons.jelly.tags.html
Class ParseTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.xml.ParseTagSupport
              |
              +--org.apache.commons.jelly.tags.html.ParseTag
All Implemented Interfaces:
Tag

public class ParseTag
extends ParseTagSupport

A tag which parses some HTML and defines a variable with the parsed Document. The HTML can either be specified as its body or can be passed in via the html property which can be a Reader, InputStream, URL or String URI.

Version:
$Revision: 1.9 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ParseTag()
           
 
Method Summary
protected  org.dom4j.io.SAXReader createSAXReader()
          Factory method to create a new SAXReader
 void doTag(XMLOutput output)
          Evaluates this tag after all the tags properties have been initialized.
 void setHtml(java.lang.Object html)
          Sets the source of the HTML which is either a String URI, Reader or InputStream
 
Methods inherited from class org.apache.commons.jelly.tags.xml.ParseTagSupport
getSAXReader, getVar, parse, parseBody, setSAXReader, setVar
 
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

ParseTag

public ParseTag()
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.

setHtml

public void setHtml(java.lang.Object html)
Sets the source of the HTML which is either a String URI, Reader or InputStream

createSAXReader

protected org.dom4j.io.SAXReader createSAXReader()
                                          throws java.lang.Exception
Factory method to create a new SAXReader
Overrides:
createSAXReader in class ParseTagSupport


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