C# 클래스 Summer.Batch.Extra.Ebcdic.EbcdicReader

An EbcdicReader reads bytes from an input stream and returns records, according to a copybook. Each call to NextRecord returns a list of objects, containing the decoded values of the fields. When there are no more records to read, it returns null. Copybooks with multiple records are supported. The reader relies on the position get/set methods of the input stream to detect the format of the current record.
파일 보기 프로젝트 열기: SummerBatch/SummerBatch 1 사용 예제들

공개 메소드들

메소드 설명
EbcdicReader ( BufferedStream inputStream, Summer.Batch.Extra.Copybook.FileFormat fileFormat, bool hasRdw ) : System

Constructs an EbcdicReader.

NextRecord ( ) : List

Returns the next record as a list of objects.

비공개 메소드들

메소드 설명
Read ( int length, Summer.Batch.Extra.Copybook.FieldFormat fieldFormat ) : byte[]

Technical read byte array, given length and field format

ReadDiscriminatorValue ( ) : string

read the discriminator value

ReadField ( Summer.Batch.Extra.Copybook.FieldFormat fieldFormat, decimal>.IDictionary readNumericValues ) : object

read a field

ReadFields ( IFieldsList fieldsList ) : List

read a fields list

ReadFieldsGroup ( Summer.Batch.Extra.Copybook.FieldsGroup fieldsGroup, decimal>.IDictionary readNumericValues ) : List

read a fields group

RetrieveRecordFormat ( ICollection values ) : Summer.Batch.Extra.Copybook.RecordFormat

retrieve record format

메소드 상세

EbcdicReader() 공개 메소드

Constructs an EbcdicReader.
public EbcdicReader ( BufferedStream inputStream, Summer.Batch.Extra.Copybook.FileFormat fileFormat, bool hasRdw ) : System
inputStream System.IO.BufferedStream the stream to read the data from
fileFormat Summer.Batch.Extra.Copybook.FileFormat the copybook to use for decoding records
hasRdw bool true if records have a record descriptor word (RDW)
리턴 System

NextRecord() 공개 메소드

Returns the next record as a list of objects.
   
public NextRecord ( ) : List
리턴 List