Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » parser » [javadoc | source]
com.opensymphony.module.sitemesh.parser
public class: HTMLPageParser [javadoc | source]
java.lang.Object
   com.opensymphony.module.sitemesh.parser.HTMLPageParser

All Implemented Interfaces:
    PageParser

Direct Known Subclasses:
    DivExtractingPageParser

Builds an HTMLPage object from an HTML document. This behaves similarly to the FastPageParser, however it's a complete rewrite that is simpler to add custom features to such as extraction and transformation of elements.

To customize the rules used, this class can be extended and have the userDefinedRules() methods overridden.

Method from com.opensymphony.module.sitemesh.parser.HTMLPageParser Summary:
addUserDefinedRules,   parse
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.parser.HTMLPageParser Detail:
 protected  void addUserDefinedRules(State html,
    PageBuilder page) 
 public Page parse(char[] data) throws IOException