Summer.Batch.Extra.Ebcdic.EbcdicWriter Class Reference

An EbcdicWriter writes records to an output stream, according to a copybook. Please note that this class is "Stream agnostic" More...

Public Member Functions

 EbcdicWriter (Stream outputStream, string charset, bool writeRdw, EbcdicEncoder.DefaultValue filler)
 Constructs a new EbcdicWriter More...
 
void WriteRecord (List< object > fields)
 Writes a record to the output. More...
 
void WriteRecord (string recordKey, List< object > fields)
 Writes a record using the specified record format. More...
 

Properties

RecordFormatMap RecordFormatMap [set]
 RecordFormatMap property. More...
 

Detailed Description

An EbcdicWriter writes records to an output stream, according to a copybook. Please note that this class is "Stream agnostic"

Constructor & Destructor Documentation

Summer.Batch.Extra.Ebcdic.EbcdicWriter.EbcdicWriter ( Stream  outputStream,
string  charset,
bool  writeRdw,
EbcdicEncoder.DefaultValue  filler 
)

Constructs a new EbcdicWriter

Parameters
outputStreamthe stream to read from
charsetencoding to use for writing
writeRdwwhether a record descriptor word (RDW) should be written with each record
filler

Member Function Documentation

void Summer.Batch.Extra.Ebcdic.EbcdicWriter.WriteRecord ( List< object >  fields)

Writes a record to the output.

Parameters
fieldsthe list of field values to encode. If there are multiple record formats, the first item is expected to be the discriminator value.
Exceptions
IOException if there are issues writing the data
EbcdicException if field values do not conform to the copybook
void Summer.Batch.Extra.Ebcdic.EbcdicWriter.WriteRecord ( string  recordKey,
List< object >  fields 
)

Writes a record using the specified record format.

Parameters
recordKeythe key corresponding to the record format
fieldsthe list of field values to encode
Exceptions
IOException if there are issues writing the data
EbcdicException if field values do not conform to the copybook

Property Documentation

RecordFormatMap Summer.Batch.Extra.Ebcdic.EbcdicWriter.RecordFormatMap
set

RecordFormatMap property.


The documentation for this class was generated from the following file:
  • Summer.Batch.Extra/Ebcdic/EbcdicWriter.cs