org.custommonkey.xmlunit
public class HTMLDocumentBuilder extends Object
See Also: TolerantSaxDocumentBuilder
Nested Class Summary | |
---|---|
class | HTMLDocumentBuilder.SwingEvent2SaxAdapter
Adapts Swing HTML callback messages to Sax equivalents, passing them
to a Sax-aware ContentHandler. |
Field Summary | |
---|---|
protected HTMLDocumentBuilder.SwingEvent2SaxAdapter | swingEvent2SaxAdapter |
protected TolerantSaxDocumentBuilder | tolerantSaxDocumentBuilder |
Constructor Summary | |
---|---|
HTMLDocumentBuilder(TolerantSaxDocumentBuilder tolerantSaxDocumentBuilder)
Constructor |
Method Summary | |
---|---|
String | getTrace() |
Document | parse(Reader reader) |
Document | parse(String htmlString) |
Parameters: tolerantSaxDocumentBuilder the instance that will receive SAX calls generated as the HTML is parsed and build up a DOM Document
Returns: the trace of events and / or warnings encountered during parsing
Returns: a DOM document parsed from the Reader via an SwingEvent2SaxAdapter and TolerantSaxBuilder. Not thread-safe!
See Also: TolerantSaxDocumentBuilder
Returns: a DOM document parsed from the String via an SwingEvent2SaxAdapter and TolerantSaxBuilder. Not thread-safe!
See Also: TolerantSaxDocumentBuilder