public class MultipassReplacementPageParser extends java.lang.Object implements PageParser
Modifier and Type | Field and Description |
---|---|
private Page |
page |
private javax.servlet.http.HttpServletResponse |
response |
Constructor and Description |
---|
MultipassReplacementPageParser(Page page,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
Page |
parse(char[] buffer)
Parse the given buffer into a Page object.
|
Page |
parse(SitemeshBuffer sitemeshBuffer)
Parse the given buffer into a page object.
|
private final Page page
private final javax.servlet.http.HttpServletResponse response
public MultipassReplacementPageParser(Page page, javax.servlet.http.HttpServletResponse response)
public Page parse(char[] buffer) throws java.io.IOException
PageParser
parse
in interface PageParser
buffer
- The buffer for the page.java.io.IOException
- if an error occurspublic Page parse(SitemeshBuffer sitemeshBuffer) throws java.io.IOException
PageParser
DefaultSitemeshBuffer
is the appropriate implementation of
this interface to pass in.parse
in interface PageParser
sitemeshBuffer
- The buffer for the page.java.io.IOException
- if an error occurs