Package com.opensymphony.module.sitemesh
Interface PageParser
- All Known Implementing Classes:
DivExtractingPageParser,FastPageParser,HTMLPageParser,MultipassReplacementPageParser,PartialPageParser,SuperFastSimplePageParser
public interface PageParser
The PageParser is responsible for parsing the page data into an appropriate
Page object.
The implementation of this can be switched to parse different kind of data (e.g. HTML, WML, FOP, images) or
for performance enhancements. An implementation is obtained through the
Factory .
A single PageParser is reused, therefore the parse() methods need to be thread-safe.
- Author:
- Joe Walnes
-
Method Summary
Modifier and TypeMethodDescriptionparse(char[] buffer) Deprecated.parse(SitemeshBuffer buffer) Parse the given buffer into a page object.
-
Method Details
-
parse
Parse the given buffer into a page object.DefaultSitemeshBufferis the appropriate implementation of this interface to pass in.- Parameters:
buffer- The buffer for the page.- Returns:
- The parsed page
- Throws:
IOException- if an error occurs
-
parse
Deprecated.Useparse(SitemeshBuffer), to allow performance improvement such as single buffer parsing and buffer chaining.Parse the given buffer into a Page object.- Parameters:
buffer- The buffer for the page.- Returns:
- The parsed page
- Throws:
IOException- if an error occurs
-
parse(SitemeshBuffer), to allow performance improvement such as single buffer parsing and buffer chaining.