A Spring Batch writer for a EBCDIC files. It writes business object as EBCDIC records, according to a copybook and a mapper. More...
Public Member Functions | |
EbcdicFileWriter () | |
Default constructor More... | |
override void | Open (ExecutionContext executionContext) |
override void | Update (ExecutionContext executionContext) |
override void | Close () |
override void | Flush () |
Flushes the underlying stream. More... | |
override void | Write (IList< T > items) |
void | ChangeCopyBook (string copybook) |
Changes the current copybook More... | |
void | AfterPropertiesSet () |
Public Member Functions inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport | |
string | GetExecutionContextKey (string key) |
Transform the given key to use the name of this instance as prefix. More... | |
virtual void | Dispose () |
Properties | |
IResource | Resource [set] |
Resource property. More... | |
IList< IResource > | Copybooks [get, set] |
List of copybooks property. More... | |
EbcdicWriterMapper | EbcdicWriterMapper [set] |
EbcdicWriterMapper property. More... | |
bool | AppendAllowed [set] |
Indicates that the target resource should be appended if it already exists. Default is false . More... | |
bool | DeleteIfExist [set] |
Indicates that the target resource should be deleted if it exists. Ignored if P:AppendAllowed is true . Default is false . More... | |
bool | DeleteIfEmpty [set] |
Indicates that the target resource should be deleted if no lines were written. Default is false . More... | |
bool | SaveState [set] |
Indicates that the state of the item writer should be savec in the execution context when M:Update is called. More... | |
bool | WriteRdw [set] |
Whether to write a Record descriptor word or not. More... | |
EbcdicEncoder.DefaultValue | DefaultValue [set] |
Default value for encoder. More... | |
Properties inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport | |
string | Name [set] |
The name of the component that will be used as prefix for keys in the execution context. More... | |
Properties inherited from Summer.Batch.Infrastructure.Item.File.IResourceAwareItemWriterItemStream< T > | |
IResource | Resource [set] |
The T:Summer.Batch.Common.IO.IResource to write to. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport | |
virtual void | Dispose (bool disposing) |
Does the actual dipose, delegating to Close(); More... | |
Detailed Description
A Spring Batch writer for a EBCDIC files. It writes business object as EBCDIC records, according to a copybook and a mapper.
- Template Parameters
-
T the type of the business objects to read
- Type Constraints
-
T : class
Constructor & Destructor Documentation
Default constructor
Member Function Documentation
void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.AfterPropertiesSet | ( | ) |
- See also
- IInitializationPostOperations::AfterPropertiesSet
Implements Summer.Batch.Common.Factory.IInitializationPostOperations.
void Summer.Batch.Extra.Ebcdic.EbcdicFileWriter< T >.ChangeCopyBook | ( | string | copybook | ) |
Changes the current copybook
- See also
- ICopybookIo::ChangeCopyBook
- Parameters
-
copybook the simple name (without the extension) of the copybook to use
Implements Summer.Batch.Extra.Ebcdic.ICopybookIo.
|
virtual |
- See also
- ItemStream::Close
Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.
|
virtual |
Flushes the underlying stream.
Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.
|
virtual |
- See also
- ItemStream::Open
- Parameters
-
executionContext
Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.
|
virtual |
- See also
- ItemStream::Update
- Parameters
-
executionContext
Reimplemented from Summer.Batch.Infrastructure.Item.Util.ItemStreamSupport.
|
virtual |
- See also
- AbstractItemStreamItemWriter::Write
- Parameters
-
items
Implements Summer.Batch.Infrastructure.Item.Support.AbstractItemStreamItemWriter< T >.
Property Documentation
|
set |
Indicates that the target resource should be appended if it already exists. Default is false
.
|
getset |
List of copybooks property.
|
set |
Default value for encoder.
|
set |
Indicates that the target resource should be deleted if no lines were written. Default is false
.
|
set |
Indicates that the target resource should be deleted if it exists. Ignored if P:AppendAllowed is true
. Default is false
.
EbcdicWriterMapper property.
|
set |
Resource property.
|
set |
Indicates that the state of the item writer should be savec in the execution context when M:Update is called.
|
set |
Whether to write a Record descriptor word or not.
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/Ebcdic/EbcdicFileWriter.cs