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
-
outputStream the stream to read from charset encoding to use for writing writeRdw whether 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
-
fields the 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
-
recordKey the key corresponding to the record format fields the 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
|
set |
RecordFormatMap property.
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Ebcdic/EbcdicWriter.cs