Class HTMLPageParser
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddUserDefinedRules(State html, PageBuilder page) parse(char[] data) This builds a Page.
-
Constructor Details
-
HTMLPageParser
public HTMLPageParser()
-
-
Method Details
-
parse
Description copied from interface:PageParserThis builds a Page.- Specified by:
parsein interfacePageParser- Throws:
IOException
-
addUserDefinedRules
-