com.ibm.websphere.batch.devframework.datastreams.patternadapter
Interface FileWriterPattern
- public interface FileWriterPattern
Method Summary
Modifier and Type | Method and Description |
---|---|
|
initialize(java.util.Properties props)
Invoked during step setup phase
|
|
writeHeader(java.io.BufferedWriter out)
This method is invoked only once just after the bufferedwriter
is opened.
|
|
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.
|
|
writeRecord(java.io.BufferedWriter out,java.lang.Object record)
This method should write the given record
object to the bufferedwriter.
|
Method Detail
initialize
- void initialize(java.util.Properties props)
Invoked during step setup phase
Parameters:
props
- writeRecord
- void writeRecord(java.io.BufferedWriter out,
- java.lang.Object record)
- throws java.io.IOException
This method should write the given record
object to the bufferedwriter.
Parameters:
out
- record
- Throws:
java.io.IOException
writeHeader
- void writeHeader(java.io.BufferedWriter out)
- throws java.io.IOException
This method is invoked only once just after the bufferedwriter
is opened. It should be used to write any header information
Parameters:
out
- Throws:
java.io.IOException
writeHeader
- void writeHeader(java.io.BufferedWriter out,
- java.lang.Object header)
- throws java.io.IOException
This method can be optionally called during process step to explicity
initialize and write the header.
Parameters:
header
- Throws:
java.io.IOException