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