C# Class indice.Edi.EdiReader

Inheritance: IDisposable
Afficher le fichier Open project: indice-co/EDI.Net Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

public CheckInsideSegment ( string segmentName ) : bool
segmentName string
Résultat bool

Close() public méthode

Changes the State to Closed.
public Close ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

EdiReader() protected méthode

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

Read() public abstract méthode

Reads the next EDI token from the stream.
public abstract Read ( ) : bool
Résultat bool

ReadAsDateTime() public abstract méthode

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

ReadAsDecimal() public abstract méthode

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
Résultat decimal?

ReadAsInt32() public abstract méthode

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

ReadAsString() public abstract méthode

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

SetToken() protected méthode

Sets the current token.
protected SetToken ( EdiToken newToken ) : void
newToken EdiToken The new token.
Résultat void

SetToken() protected méthode

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

Skip() public méthode

Skips the children of the current token.
public Skip ( ) : void
Résultat void