C# 클래스 SimpleFramework.Xml.Stream.Provider

The Provider object is used to represent the provider of an XML parser. All XML parsers are represented as an event reader much like the StAX event reader. Providing a interface to the parser in this manner ensures that the core framework is not coupled to any specific implementation and also ensures that it should run in multiple environments that may support specific XML parsers.
파일 보기 프로젝트 열기: ngallagher/simplexml

공개 메소드들

메소드 설명
Provide ( Stream source ) : EventReader

This provides an EventReader that will read from the specified input stream. When reading from an input stream the character encoding should be taken from the XML prolog or it should default to the UTF-8 character encoding.

Provide ( TextReader source ) : EventReader

This provides an EventReader that will read from the specified reader. When reading from a reader the character encoding should be the same as the source XML document.

메소드 상세

Provide() 공개 추상적인 메소드

This provides an EventReader that will read from the specified input stream. When reading from an input stream the character encoding should be taken from the XML prolog or it should default to the UTF-8 character encoding.
public abstract Provide ( Stream source ) : EventReader
source System.IO.Stream /// this is the stream to read the document with ///
리턴 EventReader

Provide() 공개 추상적인 메소드

This provides an EventReader that will read from the specified reader. When reading from a reader the character encoding should be the same as the source XML document.
public abstract Provide ( TextReader source ) : EventReader
source System.IO.TextReader /// this is the reader to read the document with ///
리턴 EventReader