iText 8.0.2 API
iText.Kernel.Utils.IXmlParserFactory Interface Reference

The interface in which methods for creating xml parsers are declared. More...

Inheritance diagram for iText.Kernel.Utils.IXmlParserFactory:
iText.Kernel.Utils.DefaultSafeXmlParserFactory

Public Member Functions

XmlReader  CreateXmlReaderInstance (Stream stream, XmlParserContext inputContext)
  Creates the instance of XmlReader. More...
 
XmlReader  CreateXmlReaderInstance (TextReader textReader)
  Creates the instance of XmlReader. More...
 

Detailed Description

The interface in which methods for creating xml parsers are declared.

Member Function Documentation

◆ CreateXmlReaderInstance() [1/2]

XmlReader iText.Kernel.Utils.IXmlParserFactory.CreateXmlReaderInstance ( Stream  stream,
XmlParserContext  inputContext 
)

Creates the instance of XmlReader.

Parameters
stream the stream that contains the XML data.
inputContext the context information required to parse the XML fragment.
Returns
an object that is used to read the XML data in the stream.

Implemented in iText.Kernel.Utils.DefaultSafeXmlParserFactory.

◆ CreateXmlReaderInstance() [2/2]

XmlReader iText.Kernel.Utils.IXmlParserFactory.CreateXmlReaderInstance ( TextReader  textReader )

Creates the instance of XmlReader.

Parameters
textReader the text reader from which to read the XML data.
Returns
an object that is used to read the XML data in the stream.

Implemented in iText.Kernel.Utils.DefaultSafeXmlParserFactory.