public class JsoupHtmlParser extends Object implements IHtmlParser
Constructor and Description |
---|
JsoupHtmlParser() |
Modifier and Type | Method and Description |
---|---|
IDocumentNode |
parse(InputStream htmlStream, String charset)
Parses HTML provided as an InputStream and an encoding.
|
IDocumentNode |
parse(String html)
Parses HTML provided as a String .
|
public IDocumentNode parse(InputStream htmlStream, String charset) throws IOException
IHtmlParser
InputStream
and an encoding.
parse
in interface IHtmlParser
htmlStream
- the html stream
charset
- the character set. If null
then parser should detect encoding from stream.
IOException
- Signals that an I/O exception has occurred.
public IDocumentNode parse(String html)
IHtmlParser
String
.
parse
in interface IHtmlParser
html
- the html string
Copyright © 1998–2019 iText Group NV. All rights reserved.