public interface PageParser
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.
Modifier and Type | Method and Description |
---|---|
Page |
parse(char[] buffer)
Deprecated.
Use
parse(SitemeshBuffer) , to allow performance improvement such as single buffer
parsing and buffer chaining. |
Page |
parse(SitemeshBuffer buffer)
Parse the given buffer into a page object.
|
Page parse(SitemeshBuffer buffer) throws java.io.IOException
DefaultSitemeshBuffer
is the appropriate implementation of
this interface to pass in.buffer
- The buffer for the page.java.io.IOException
- if an error occurs@Deprecated Page parse(char[] buffer) throws java.io.IOException
parse(SitemeshBuffer)
, to allow performance improvement such as single buffer
parsing and buffer chaining.buffer
- The buffer for the page.java.io.IOException
- if an error occurs