public class HTMLDocumentBuilder extends Object
TolerantSaxDocumentBuilder| Modifier and Type | Class and Description |
|---|---|
class |
HTMLDocumentBuilder.SwingEvent2SaxAdapter
Adapts Swing HTML callback messages to Sax equivalents, passing them
to a Sax-aware ContentHandler.
|
| Modifier and Type | Field and Description |
|---|---|
protected HTMLDocumentBuilder.SwingEvent2SaxAdapter |
swingEvent2SaxAdapter |
protected TolerantSaxDocumentBuilder |
tolerantSaxDocumentBuilder |
| Constructor and Description |
|---|
HTMLDocumentBuilder(TolerantSaxDocumentBuilder tolerantSaxDocumentBuilder)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTrace() |
Document |
parse(Reader reader) |
Document |
parse(String htmlString) |
protected final TolerantSaxDocumentBuilder tolerantSaxDocumentBuilder
protected final HTMLDocumentBuilder.SwingEvent2SaxAdapter swingEvent2SaxAdapter
public HTMLDocumentBuilder(TolerantSaxDocumentBuilder tolerantSaxDocumentBuilder)
tolerantSaxDocumentBuilder - the instance that will receive SAX
calls generated as the HTML is parsed and build up a DOM Documentpublic Document parse(Reader reader) throws SAXException, IOException
SAXExceptionIOExceptionTolerantSaxDocumentBuilderpublic Document parse(String htmlString) throws SAXException, IOException
SAXExceptionIOExceptionTolerantSaxDocumentBuilderpublic String getTrace()
Copyright © 2001–2022 XMLUnit. All rights reserved.