public interface FileWriterPattern {
/**
* Invoked during step setup phase
* @param props
*/
public void initialize(Properties props);
/**
* This method should write the given record
* object to the bufferedwriter.
* @param out
* @param record
* @throws IOException
*/
public void writeRecord(BufferedWriter out, Object record) throws IOException;
/**
* This method is invoked only once just after the bufferedwriter
* is opened. It should be used to write any header information
* @param out
* @throws IOException
*/
public void writeHeader(BufferedWriter out) throws IOException;
/**
* This method can be optionally called during process step to explicity
* initialize and write the header.
* @param header
* @throws IOException
*/
public void writeHeader(BufferedWriter out, Object header) throws IOException;
}