C# Класс indice.Edi.EdiReader

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CheckInsideSegment() публичный Метод

public CheckInsideSegment ( string segmentName ) : bool
segmentName string
Результат bool

Close() публичный Метод

Changes the State to Closed.
public Close ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

EdiReader() защищенный Метод

Initializes a new instance of the EdiReader class.
protected EdiReader ( IEdiGrammar grammar ) : indice.Edi.Utilities
grammar IEdiGrammar
Результат indice.Edi.Utilities

Read() публичный абстрактный Метод

Reads the next EDI token from the stream.
public abstract Read ( ) : bool
Результат bool

ReadAsDateTime() публичный абстрактный Метод

Reads the next EDI token from the stream as a Nullable{DateTime}.
public abstract ReadAsDateTime ( ) : DateTime?
Результат DateTime?

ReadAsDecimal() публичный абстрактный Метод

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
Результат decimal?

ReadAsInt32() публичный абстрактный Метод

Reads the next EDI token from the stream as a Nullable{Int32}.
public abstract ReadAsInt32 ( ) : int?
Результат int?

ReadAsString() публичный абстрактный Метод

Reads the next EDI token from the stream as a String.
public abstract ReadAsString ( ) : string
Результат string

SetToken() защищенный Метод

Sets the current token.
protected SetToken ( EdiToken newToken ) : void
newToken EdiToken The new token.
Результат void

SetToken() защищенный Метод

Sets the current token and value.
protected SetToken ( EdiToken newToken, object value ) : void
newToken EdiToken The new token.
value object The value.
Результат void

Skip() публичный Метод

Skips the children of the current token.
public Skip ( ) : void
Результат void