Class JsoupHtmlParser
java.lang.Object
com.itextpdf.styledxmlparser.node.impl.jsoup.JsoupHtmlParser
- All Implemented Interfaces:
-
IXmlParser
Class that uses JSoup to parse HTML.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(InputStream htmlStream, String charset) Parses XML provided as anInputStream
and an encoding.Parses XML provided as aString
.
-
Constructor Details
-
JsoupHtmlParser
public JsoupHtmlParser()
-
-
Method Details
-
parse
Description copied from interface:IXmlParser
Parses XML provided as anInputStream
and an encoding.- Specified by:
-
parse
in interfaceIXmlParser
- Parameters:
-
htmlStream
- the Xml stream -
charset
- the character set. Ifnull
then parser should detect encoding from stream. - Returns:
- a document node
- Throws:
-
IOException
- Signals that an I/O exception has occurred.
-
parse
Description copied from interface:IXmlParser
Parses XML provided as aString
.- Specified by:
-
parse
in interfaceIXmlParser
- Parameters:
-
html
- the Xml string - Returns:
- a document node
-