public class SummaryFooterCallback extends StepExecutionListenerSupport implements FlatFileFooterCallback
Constructor and Description |
---|
SummaryFooterCallback() |
Modifier and Type | Method and Description |
---|---|
void |
beforeStep(StepExecution stepExecution)
Initialize the state of the listener with the
StepExecution from
the current scope. |
void |
writeFooter(java.io.Writer writer)
Write contents to a file using the supplied
Writer . |
afterStep
public void writeFooter(java.io.Writer writer) throws java.io.IOException
FlatFileFooterCallback
Writer
. It is not
required to flush the writer inside this method.writeFooter
in interface FlatFileFooterCallback
writer
- the Writer
to be used to write the footer.java.io.IOException
- if error occurs during writing.public void beforeStep(StepExecution stepExecution)
StepExecutionListener
StepExecution
from
the current scope.beforeStep
in interface StepExecutionListener
beforeStep
in class StepExecutionListenerSupport
stepExecution
- instance of StepExecution
.