C# Class indice.Edi.EdiReader

Inheritance: IDisposable
Datei anzeigen Open project: indice-co/EDI.Net Class Usage Examples

Public Methods

Method Description
CheckInsideSegment ( string segmentName ) : bool
Close ( ) : void

Changes the State to Closed.

Read ( ) : bool

Reads the next EDI token from the stream.

ReadAsDateTime ( ) : DateTime?

Reads the next EDI token from the stream as a Nullable{DateTime}.

ReadAsDecimal ( Picture picture ) : decimal?

Reads the next EDI token from the stream as a Nullable{Decimal}.

ReadAsInt32 ( ) : int?

Reads the next EDI token from the stream as a Nullable{Int32}.

ReadAsString ( ) : string

Reads the next EDI token from the stream as a String.

Skip ( ) : void

Skips the children of the current token.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

EdiReader ( IEdiGrammar grammar ) : indice.Edi.Utilities

Initializes a new instance of the EdiReader class.

SetToken ( EdiToken newToken ) : void

Sets the current token.

SetToken ( EdiToken newToken, object value ) : void

Sets the current token and value.

Private Methods

Method Description
GetCurrentPath ( ) : string
GetPosition ( int depth ) : EdiPosition
IDisposable ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

IncrementPosition ( ) : void
Peek ( ) : EdiContainerType
Pop ( ) : EdiContainerType
Push ( EdiContainerType value ) : void
ReadAsDateTimeInternal ( ) : DateTime?
ReadAsDecimalInternal ( Picture picture ) : decimal?
ReadAsInt32Internal ( ) : int?
ReadAsStringInternal ( ) : string
ReadInternal ( ) : bool
SetFinished ( ) : void
SetPostValueState ( ) : void
SetToken ( EdiToken newToken, object value, bool updateIndex ) : void

Method Details

CheckInsideSegment() public method

public CheckInsideSegment ( string segmentName ) : bool
segmentName string
return bool

Close() public method

Changes the State to Closed.
public Close ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

EdiReader() protected method

Initializes a new instance of the EdiReader class.
protected EdiReader ( IEdiGrammar grammar ) : indice.Edi.Utilities
grammar IEdiGrammar
return indice.Edi.Utilities

Read() public abstract method

Reads the next EDI token from the stream.
public abstract Read ( ) : bool
return bool

ReadAsDateTime() public abstract method

Reads the next EDI token from the stream as a Nullable{DateTime}.
public abstract ReadAsDateTime ( ) : DateTime?
return DateTime?

ReadAsDecimal() public abstract method

Reads the next EDI token from the stream as a Nullable{Decimal}.
public abstract ReadAsDecimal ( Picture picture ) : decimal?
picture Picture The is the format information needed to parse this into a float
return decimal?

ReadAsInt32() public abstract method

Reads the next EDI token from the stream as a Nullable{Int32}.
public abstract ReadAsInt32 ( ) : int?
return int?

ReadAsString() public abstract method

Reads the next EDI token from the stream as a String.
public abstract ReadAsString ( ) : string
return string

SetToken() protected method

Sets the current token.
protected SetToken ( EdiToken newToken ) : void
newToken EdiToken The new token.
return void

SetToken() protected method

Sets the current token and value.
protected SetToken ( EdiToken newToken, object value ) : void
newToken EdiToken The new token.
value object The value.
return void

Skip() public method

Skips the children of the current token.
public Skip ( ) : void
return void