public interface HtmlParser
| Modifier and Type | Method and Description |
|---|---|
void |
parse(InputStream inputStream,
String encoding,
ContentHandler contentHandler)
Parse HTML and send SAX events.
|
Document |
parse(String systemId,
InputStream inputStream,
String encoding)
Parse HTML and return a DOM Document.
|
void parse(InputStream inputStream, String encoding, ContentHandler contentHandler) throws 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.SAXException - Exception thrown when parsing fails.Document parse(String systemId, InputStream inputStream, String encoding) throws IOException
systemId - The system idinputStream - The input streamencoding - Encoding of the input stream, null for default encoding.nullIOException - Exception thrown when parsing fails.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.