public interface FileWriterPattern
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(java.util.Properties props)
Invoked during step setup phase
|
void |
writeHeader(java.io.BufferedWriter out)
This method is invoked only once just after the bufferedwriter
is opened.
|
void |
writeHeader(java.io.BufferedWriter out,
java.lang.Object header)
This method can be optionally called during process step to explicity
initialize and write the header.
|
void |
writeRecord(java.io.BufferedWriter out,
java.lang.Object record)
This method should write the given record
object to the bufferedwriter.
|
void initialize(java.util.Properties props)
props - void writeRecord(java.io.BufferedWriter out,
java.lang.Object record)
throws java.io.IOException
out - record - java.io.IOExceptionvoid writeHeader(java.io.BufferedWriter out)
throws java.io.IOException
out - java.io.IOExceptionvoid writeHeader(java.io.BufferedWriter out,
java.lang.Object header)
throws java.io.IOException
header - java.io.IOException