PDIParser Class

This abstract base class implements the common functionality for all PDI data stream parsers

Definition

Namespace: EWSoftware.PDI.Parser
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public abstract class PDIParser
Inheritance
Object    PDIParser
Derived

Remarks

The parser is very forgiving and should be able to parse most PDI data streams even when they contain syntax errors.

Constructors

PDIParser Default constructor. It is protected as this class must be derived from in order to implement the abstract methods.

Properties

DefaultEncoding This property is used to set or get the default text encoding method used when parsing a PDI data stream.
LineNumber This returns the current line number being processed from the data stream

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Flush This is called to flush any pending property or value data when the end of a data stream has been reached.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ParseFile This method is used to parse one or more PDI objects from the specified file or URL
ParseReader This method is used to parse one or more PDI objects from a TextReader derived object such as a StreamReader or a StringReader.
ParseString This method is used to parse one or more PDI objects from a string
PropertyParser Override this in derived classes to handle properties as they are parsed from the data stream
ResetState This resets the parser to a default state
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also