public class JsoupXmlParser extends Object implements IXmlParser
| Constructor and Description |
|---|
JsoupXmlParser() |
| Modifier and Type | Method and Description |
|---|---|
IDocumentNode |
parse(InputStream xmlStream,
String charset)
Parses XML provided as an
InputStream and an encoding. |
IDocumentNode |
parse(String xml)
Parses XML provided as a
String. |
public IDocumentNode parse(InputStream xmlStream, String charset) throws IOException
IXmlParserInputStream and an encoding.parse in interface IXmlParserxmlStream - the Xml streamcharset - 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 xml)
IXmlParserString.parse in interface IXmlParserxml - the Xml stringCopyright © 1998–2022 iText Group NV. All rights reserved.