类 SummaryFooterCallback
- java.lang.Object
- org.springframework.batch.core.listener.StepExecutionListenerSupport
- org.springframework.batch.sample.support.SummaryFooterCallback
public class SummaryFooterCallback extends StepExecutionListenerSupport implements FlatFileFooterCallback
Writes summary info in the footer of a file.
构造器概要
构造器 构造器 说明 SummaryFooterCallback()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidbeforeStep(StepExecution stepExecution)Initialize the state of the listener with theStepExecutionfrom the current scope.voidwriteFooter(java.io.Writer writer)Write contents to a file using the suppliedWriter.从类继承的方法 org.springframework.batch.core.listener.StepExecutionListenerSupport
afterStep
构造器详细资料
SummaryFooterCallback
public SummaryFooterCallback()
方法详细资料
writeFooter
public void writeFooter(java.io.Writer writer) throws java.io.IOException
从接口复制的说明:FlatFileFooterCallbackWrite contents to a file using the suppliedWriter. It is not required to flush the writer inside this method.- 指定者:
writeFooter在接口中FlatFileFooterCallback- 参数:
writer- theWriterto be used to write the footer.- 抛出:
java.io.IOException- if error occurs during writing.
beforeStep
public void beforeStep(StepExecution stepExecution)
从接口复制的说明:StepExecutionListenerInitialize the state of the listener with theStepExecutionfrom the current scope.- 指定者:
beforeStep在接口中StepExecutionListener- 覆盖:
beforeStep在类中StepExecutionListenerSupport- 参数:
stepExecution- instance ofStepExecution.