Keyoti Search for ASP.NET API Docs
ParserProvider Class
API DocumentationKeyoti.SearchEngine.DocumentsParserProvider
Keyoti Search for ASP.NET 2010
Provides a parser for different document types.
Declaration Syntax
C#Visual BasicVisual C++
public class ParserProvider
Public Class ParserProvider
public ref class ParserProvider
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
ParserProvider(Configuration)
Creates an instance of the ParserProvider class.

Configuration
Gets the instance of the Configuration class that holds the settings to be used.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetParser(String)
Gets a new parser object for the specified mimeType.

GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
GetParser is used to return a Parser subclass for the specified mimeType. The mimeType is initially identified for a document based on the Response.ContentType returned from the server or from Configuration.fileTypesSettings for documents read using the file-system. Subclassing this class is necessary when adding new document parsers to the build system.
Examples
Suppose a new parser is written for your organizations XML files - called XMLDocumentParser. Of course this parser must now be used for these files, to do this ParserProvider is subclassed - called CustomParserProvider. To make the Document class use the new CustomParserProvider one way would be to subclass DocumentIndex and override CreateNewDocument method to return a new Document object with a preset ParserProvider property. This causes CustomParserProvider to be instantiated and passed to each Document object as it is indexed. In CustomParserProvider the GetParser is overridden to return the XMLDocumentParser for the XML mime type.
Inheritance Hierarchy
Object
ParserProvider

Assembly: Keyoti2.SearchEngine.Core (Module: Keyoti2.SearchEngine.Core) Version: 2010.4.1.609