com.sitemesh.parser
Class DOMPageParser

java.lang.Object
  |
  +--com.sitemesh.parser.AbstractPageParser
        |
        +--com.sitemesh.parser.DOMPageParser

public class DOMPageParser
extends AbstractPageParser

Implementation of PageParser that builds up a HTMLPage using DOM.

This implementation uses OpenXML 1.2 as it is capable of parsing (and beform basic clean-up operations) on HTML.

Version:
$Revision: 1.7 $
Author:
Joe Walnes

Constructor Summary
DOMPageParser()
           
 
Method Summary
 Page parse(byte[] data)
          Send data to DOM parser and build new DOMPage.
 
Methods inherited from class com.sitemesh.parser.AbstractPageParser
parse, parse, parse, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMPageParser

public DOMPageParser()
Method Detail

parse

public Page parse(byte[] data)
           throws java.io.IOException
Send data to DOM parser and build new DOMPage. If the data cannot be parsed, an UnParsedPage is returned instead.
Overrides:
parse in class AbstractPageParser
Tags copied from class: AbstractPageParser
See Also:
PageParser