Class JsoupXmlParser
java.lang.Object
com.itextpdf.styledxmlparser.node.impl.jsoup.JsoupXmlParser
- All Implemented Interfaces:
-
IXmlParser
Class that uses JSoup to parse HTML.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(InputStream xmlStream, String charset) Parses XML provided as anInputStream
and an encoding.Parses XML provided as aString
.
-
Constructor Details
-
JsoupXmlParser
public JsoupXmlParser()
-
-
Method Details
-
parse
Description copied from interface:IXmlParser
Parses XML provided as anInputStream
and an encoding.- Specified by:
-
parse
in interfaceIXmlParser
- Parameters:
-
xmlStream
- 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:
-
xml
- the Xml string - Returns:
- a document node
-