C# Class indice.Edi.EdiTextReader

Inheritance: EdiReader, IEdiLineInfo
Show file Open project: indice-co/EDI.Net

Public Methods

Method Description
EdiTextReader ( TextReader reader, IEdiGrammar grammar ) : indice.Edi.Utilities
HasLineInfo ( ) : bool

Gets a value indicating whether the class can return line information.

ReadAsDateTime ( ) : DateTime?

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

ReadAsDecimal ( Picture picture = null ) : 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.

Private Methods

Method Description
BlockCopyChars ( char src, int srcOffset, char dst, int dstOffset, int count ) : void
ClearRecentString ( ) : void
EatWhitespace ( bool oneOrMore ) : bool
EnsureChars ( int relativePosition, bool append ) : bool
GetBuffer ( ) : StringBuffer
OnNewLine ( int pos ) : void
ParsePostValue ( ) : bool
ParseSegment ( ) : bool
ParseSegmentName ( ) : bool
ParseServiceStringAdvice ( ) : bool
ParseString ( bool forceNull = false ) : void
ParseUnicode ( ) : char
ParseValue ( ) : bool
ProcessCarriageReturn ( bool append ) : void
ProcessLineFeed ( ) : void
Read ( ) : bool
ReadChars ( int relativePosition, bool append ) : bool
ReadData ( bool append ) : int
ReadData ( bool append, int charsRequired ) : int
ReadInternal ( ) : bool
ReadStringIntoBuffer ( ) : void
SetCharBuffer ( char chars ) : void
ShiftBufferIfNeeded ( ) : void
WriteCharToBuffer ( StringBuffer buffer, char writeChar, int lastWritePosition, int writeToPosition ) : void

Method Details

EdiTextReader() public method

public EdiTextReader ( TextReader reader, IEdiGrammar grammar ) : indice.Edi.Utilities
reader TextReader
grammar IEdiGrammar
return indice.Edi.Utilities

HasLineInfo() public method

Gets a value indicating whether the class can return line information.
public HasLineInfo ( ) : bool
return bool

ReadAsDateTime() public method

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

ReadAsDecimal() public method

Reads the next EDI token from the stream as a Nullable{Decimal}.
public ReadAsDecimal ( Picture picture = null ) : decimal?
picture Picture
return decimal?

ReadAsInt32() public method

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

ReadAsString() public method

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