public interface HtmlParser
Modifier and Type | Method and Description |
---|---|
void |
parse(java.io.InputStream stream,
java.lang.String encoding,
org.xml.sax.ContentHandler ch)
Parse html and send sax events.
|
org.w3c.dom.Document |
parse(java.lang.String systemId,
java.io.InputStream stream,
java.lang.String encoding)
Parse html and return a DOM Document.
|
void parse(java.io.InputStream stream, java.lang.String encoding, org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException
stream
- The input streamencoding
- Encoding of the input stream, null
for default encoding.ch
- Content handler receiving the SAX events. The content handler might also
implement the lexical handler interface.org.xml.sax.SAXException
org.w3c.dom.Document parse(java.lang.String systemId, java.io.InputStream stream, java.lang.String encoding) throws java.io.IOException
The
- system idstream
- The input streamencoding
- Encoding of the input stream, null
for default encoding.java.io.IOException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"