public class HeaderCopyCallback extends 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(String line) |
void |
writeHeader(Writer writer)
Write contents to a file using the supplied
Writer . |
public void handleLine(String line)
handleLine
in interface LineCallbackHandler
public void writeHeader(Writer writer) throws IOException
FlatFileHeaderCallback
Writer
. It is not
required to flush the writer inside this method.writeHeader
in interface FlatFileHeaderCallback
IOException
Copyright © 2014 Pivotal. All rights reserved.