com.ibm.websphere.batch.devframework.datastreams.patternadapter

Interface FileWriterPattern


  1. public interface FileWriterPattern

Method Summary

Modifier and Type Method and Description
  1. void
initialize(java.util.Properties props)
Invoked during step setup phase
  1. void
writeHeader(java.io.BufferedWriter out)
This method is invoked only once just after the bufferedwriter is opened.
  1. 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.
  1. void
writeRecord(java.io.BufferedWriter out,java.lang.Object record)
This method should write the given record object to the bufferedwriter.

Method Detail

initialize

  1. void initialize(java.util.Properties props)
Invoked during step setup phase
Parameters:
props -

writeRecord

  1. void writeRecord(java.io.BufferedWriter out,
  2. java.lang.Object record)
  3. throws java.io.IOException
This method should write the given record object to the bufferedwriter.
Parameters:
out -
record -
Throws:
java.io.IOException

writeHeader

  1. void writeHeader(java.io.BufferedWriter out)
  2. 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

  1. void writeHeader(java.io.BufferedWriter out,
  2. java.lang.Object header)
  3. 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