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
The adapter between Swing and SAX.
|
protected TolerantSaxDocumentBuilder |
tolerantSaxDocumentBuilder
The document builder.
|
| Constructor and Description |
|---|
HTMLDocumentBuilder(TolerantSaxDocumentBuilder tolerantSaxDocumentBuilder)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTrace() |
Document |
parse(Reader reader)
Parses the document.
|
Document |
parse(String htmlString)
Parses the document.
|
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
Not thread-safe!
reader - reader to read the document fromSAXException - if the parser feels like itIOException - on I/O errorsTolerantSaxDocumentBuilderpublic Document parse(String htmlString) throws SAXException, IOException
Not thread-safe!
htmlString - string to read the document fromSAXException - if the parser feels like itIOException - on I/O errorsTolerantSaxDocumentBuilderpublic String getTrace()
Copyright © 2001–2025 XMLUnit. All rights reserved.