A tasklet for basic file manipulations. More...
Public Types | |
enum | FileUtilsMode { FileUtilsMode.Copy, FileUtilsMode.Delete, FileUtilsMode.Merge, FileUtilsMode.MergeCopy, FileUtilsMode.Reset, FileUtilsMode.Compare } |
Enumeration of the possible file operations. More... | |
enum | FileType { FileType.Text, FileType.Binary } |
Enumeration of the possible file types. More... | |
enum | EqualityComparerType { EqualityComparerType.Default, EqualityComparerType.IebcomprLike } |
Enumeration of the possible Sequence EqualityComparer Types... More... | |
Public Member Functions | |
void | BeforeStep (StepExecution stepExecution) |
Do nothing before step More... | |
ExitStatus | AfterStep (StepExecution stepExecution) |
Give a listener a chance to modify the exit status from a step. The value returned will be combined with the normal exit status using ExitStatus::And(ExitStatus). More... | |
RepeatStatus | Execute (StepContribution contribution, ChunkContext chunkContext) |
void | AfterPropertiesSet () |
Check proper properties initialization, depending on selected mode. More... | |
Properties | |
EqualityComparerType | SequenceEqualityComparerType [get, set] |
FileType flag property. More... | |
FileType | FileCompareMode [get, set] |
FileType flag property. More... | |
bool | Strict [get, set] |
Strict mode flag property. More... | |
FileUtilsMode | Mode [set] |
FileUtilsMode property. More... | |
IList< IResource > | Sources [set] |
List of source resources property. More... | |
IList< IResource > | Targets [set] |
List of target resources property. More... | |
Detailed Description
A tasklet for basic file manipulations.
The operation is specified with the Mode property. Possible values are:
- Copy copies file to another location
- Delete deletes a list of files
- Merge appends the source files to the target file
- MergeCopy merges the source files to the target file (which is overwritten if it exists)
-
Reset Creates new empty files, overwriting any existing file
- Since
- 1.1.0
- Compare Compares two files.
Member Enumeration Documentation
|
strong |
Enumeration of the possible file operations.
Member Function Documentation
void Summer.Batch.Extra.IO.FileUtilsTasklet.AfterPropertiesSet | ( | ) |
Check proper properties initialization, depending on selected mode.
- See also
- IInitializationPostOperations::AfterPropertiesSet()
Implements Summer.Batch.Common.Factory.IInitializationPostOperations.
ExitStatus Summer.Batch.Extra.IO.FileUtilsTasklet.AfterStep | ( | StepExecution | stepExecution | ) |
Give a listener a chance to modify the exit status from a step. The value returned will be combined with the normal exit status using ExitStatus::And(ExitStatus).
Called after execution of step's processing logic (both successful or failed). Throwing exception in this method has no effect, it will only be logged.
- Parameters
-
stepExecution
- Returns
Implements Summer.Batch.Core.IStepExecutionListener.
void Summer.Batch.Extra.IO.FileUtilsTasklet.BeforeStep | ( | StepExecution | stepExecution | ) |
Do nothing before step
- Parameters
-
stepExecution
Implements Summer.Batch.Core.IStepExecutionListener.
RepeatStatus Summer.Batch.Extra.IO.FileUtilsTasklet.Execute | ( | StepContribution | contribution, |
ChunkContext | chunkContext | ||
) |
- See also
- ITasklet::Execute()
- Parameters
-
contribution chunkContext
- Returns
Implements Summer.Batch.Core.Step.Tasklet.ITasklet.
Property Documentation
|
getset |
FileType flag property.
|
set |
FileUtilsMode property.
|
getset |
FileType flag property.
|
set |
List of source resources property.
|
getset |
Strict mode flag property.
|
set |
List of target resources property.
The documentation for this class was generated from the following file:
- Summer.Batch.Extra/IO/FileUtilsTasklet.cs