public class HeaderCopyCallback extends java.lang.Object implements LineCallbackHandler, FlatFileHeaderCallback
FlatFileItemReader
and FlatFileItemWriter
and copy header line from input
file to output file.Constructor and Description |
---|
HeaderCopyCallback() |
Modifier and Type | Method and Description |
---|---|
void |
handleLine(java.lang.String line) |
void |
writeHeader(java.io.Writer writer)
Write contents to a file using the supplied
Writer . |
public void handleLine(java.lang.String line)
handleLine
in interface LineCallbackHandler
public void writeHeader(java.io.Writer writer) throws java.io.IOException
FlatFileHeaderCallback
Writer
. It is not
required to flush the writer inside this method.writeHeader
in interface FlatFileHeaderCallback
java.io.IOException