public class HTMLDocumentBuilder
extends java.lang.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
|
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 org.w3c.dom.Document parse(java.io.Reader reader) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
TolerantSaxDocumentBuilder
public org.w3c.dom.Document parse(java.lang.String htmlString) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
TolerantSaxDocumentBuilder
public java.lang.String getTrace()